From f26f2209cd5ae3e990cc787033af7326f3f43462 Mon Sep 17 00:00:00 2001 From: Marco Date: Thu, 16 Feb 2017 08:25:14 +0100 Subject: [PATCH] Store email address in session data as found in the database --- src/Auth.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Auth.php b/src/Auth.php index 81a7565..c35e7f5 100644 --- a/src/Auth.php +++ b/src/Auth.php @@ -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) {