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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user