mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Allow for logging in via email address
Accept both user names and email addresses in the login prompt. Suggested-by: Johannes Löthberg <johannes@kyriasis.com> Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
c5014b0752
commit
ee9a8f232b
3 changed files with 17 additions and 2 deletions
|
@ -28,7 +28,7 @@ html_header('AUR ' . __("Login"));
|
|||
<ul class="errorlist"><li><?= $login_error ?></li></ul>
|
||||
<?php endif; ?>
|
||||
<p>
|
||||
<label for="id_username"><?= __('Username') . ':'; ?></label>
|
||||
<label for="id_username"><?= __('User name or email address') . ':'; ?></label>
|
||||
<input id="id_username" type="text" name="user" size="30" maxlength="<?= config_get_int('options', 'username_max_len'); ?>" value="<?php if (isset($_POST['user'])) { print htmlspecialchars($_POST['user'], ENT_QUOTES); } ?>" autofocus="autofocus" />
|
||||
</p>
|
||||
<p>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue