mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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>
This commit is contained in:
parent
4bf8228324
commit
d12ea08fca
1 changed files with 3 additions and 0 deletions
|
@ -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'])): ?>
|
||||
|
|
Loading…
Add table
Reference in a new issue