diff options
author | Frédéric Mangano-Tarumi <fmang@mg0.fr> | 2020-07-14 15:34:23 +0200 |
---|---|---|
committer | Lukas Fleischer <lfleischer@archlinux.org> | 2021-02-20 17:24:30 +0100 |
commit | d12ea08fcaa62211cbf4d83bba91124b90f861cf (patch) | |
tree | b67deaa284053b06ac7eba9dbbed20d14616c26e /web | |
parent | 4bf8228324e4c3811b48069a4b2ae7fd840c78a0 (diff) | |
download | aur-d12ea08fcaa62211cbf4d83bba91124b90f861cf.tar.gz aur-d12ea08fcaa62211cbf4d83bba91124b90f861cf.tar.xz |
SSO: Add an SSO option in the login page
We’ll probably change the whole login page in the future, but this makes
development easier.
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'web')
-rw-r--r-- | web/html/login.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/web/html/login.php b/web/html/login.php index 01454414..3a146f60 100644 --- a/web/html/login.php +++ b/web/html/login.php @@ -40,6 +40,9 @@ html_header('AUR ' . __("Login")); <p> <input type="submit" class="button" value="<?php print __("Login"); ?>" /> <a href="<?= get_uri('/passreset/') ?>">[<?= __('Forgot Password') ?>]</a> + <?php if (config_get('sso', 'openid_configuration')): ?> + <a href="<?= get_uri('/sso/login') ?>">[<?= __('Login through SSO') ?>]</a> + <?php endif; ?> <?php if (in_request('referer') !== ""): ?> <input id="id_referer" type="hidden" name="referer" value="<?= htmlspecialchars(in_request('referer'), ENT_QUOTES) ?>" /> <?php elseif (isset($_SERVER['HTTP_REFERER'])): ?> |