summaryrefslogtreecommitdiffstats
path: root/web/lib/acctfuncs.inc.php
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@archlinux.org>2015-09-11 22:01:46 +0200
committerLukas Fleischer <lfleischer@archlinux.org>2015-09-11 22:18:31 +0200
commitee9a8f232b960c5bfad7376f129710d19871edcc (patch)
treeb465103e658ef3d3be813689f2d745eda1ce1506 /web/lib/acctfuncs.inc.php
parentc5014b0752d2544cfb04522bda164e89246702bd (diff)
downloadaur-ee9a8f232b960c5bfad7376f129710d19871edcc.tar.gz
aur-ee9a8f232b960c5bfad7376f129710d19871edcc.tar.xz
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>
Diffstat (limited to 'web/lib/acctfuncs.inc.php')
-rw-r--r--web/lib/acctfuncs.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/lib/acctfuncs.inc.php b/web/lib/acctfuncs.inc.php
index ee8f0e3f..756c8477 100644
--- a/web/lib/acctfuncs.inc.php
+++ b/web/lib/acctfuncs.inc.php
@@ -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');