1
0
mirror of https://github.com/delight-im/PHP-Auth.git synced 2025-08-05 15:47:25 +02:00

Store email address in session data as found in the database

This commit is contained in:
Marco
2017-02-16 08:25:14 +01:00
parent 188086f2e4
commit f26f2209cd

View File

@@ -774,7 +774,7 @@ class Auth {
try {
$userData = $this->db->selectRow(
'SELECT id, password, verified, username FROM users WHERE email = ?',
'SELECT id, email, password, verified, username FROM users WHERE email = ?',
[ $email ]
);
}
@@ -793,7 +793,7 @@ class Auth {
}
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
if ($rememberDuration === true) {