mirror of
https://github.com/delight-im/PHP-Auth.git
synced 2025-08-05 07:37:25 +02:00
Store email address in session data as found in the database
This commit is contained in:
@@ -774,7 +774,7 @@ class Auth {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
$userData = $this->db->selectRow(
|
$userData = $this->db->selectRow(
|
||||||
'SELECT id, password, verified, username FROM users WHERE email = ?',
|
'SELECT id, email, password, verified, username FROM users WHERE email = ?',
|
||||||
[ $email ]
|
[ $email ]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -793,7 +793,7 @@ class Auth {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($userData['verified'] === 1) {
|
if ($userData['verified'] === 1) {
|
||||||
$this->onLoginSuccessful($userData['id'], $email, $userData['username'], false);
|
$this->onLoginSuccessful($userData['id'], $userData['email'], $userData['username'], false);
|
||||||
|
|
||||||
// continue to support the old parameter format
|
// continue to support the old parameter format
|
||||||
if ($rememberDuration === true) {
|
if ($rememberDuration === true) {
|
||||||
|
Reference in New Issue
Block a user