1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-02 20:57:26 +02:00

Issue #1684 - login with email flag.

This commit is contained in:
Cameron
2016-06-06 13:55:14 -07:00
parent 3746e12c5b
commit 815ca78cdf

View File

@@ -371,7 +371,7 @@ class userlogin
// User is in DB here // User is in DB here
$this->userData = e107::getDb()->fetch(); // Get user info $this->userData = e107::getDb()->fetch(); // Get user info
$this->userData['user_perms'] = trim($this->userData['user_perms']); $this->userData['user_perms'] = trim($this->userData['user_perms']);
$this->lookEmail = $this->lookEmail && ($username == $this->userData['user_email']); // Know whether login name or email address used now $this->lookEmail = ($username == $this->userData['user_email']) ? 1 : 0; // Know whether login name or email address used now
return TRUE; return TRUE;
} }