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
|
@ -479,7 +479,7 @@ function try_login() {
|
|||
}
|
||||
|
||||
$dbh = DB::connect();
|
||||
$userID = uid_from_username($_REQUEST['user']);
|
||||
$userID = uid_from_loginname($_REQUEST['user']);
|
||||
|
||||
if (user_suspended($userID)) {
|
||||
$login_error = __('Account suspended');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue