From ee485f99ab242002233c8669bd0f5507a4eff82b Mon Sep 17 00:00:00 2001 From: Marco Date: Mon, 12 Jun 2017 20:29:58 +0200 Subject: [PATCH] Ensure compatibility with SQLite which does not cast to native types --- src/Auth.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Auth.php b/src/Auth.php index 5b45bf8..99f7db8 100644 --- a/src/Auth.php +++ b/src/Auth.php @@ -584,7 +584,7 @@ final class Auth extends UserManager { ); // ensure that the account has been verified before initiating a password reset - if ($userData['verified'] !== 1) { + if ((int) $userData['verified'] !== 1) { throw new EmailNotVerifiedException(); } @@ -679,7 +679,7 @@ final class Auth extends UserManager { $this->updatePassword($userData['id'], $password); } - if ($userData['verified'] === 1) { + if ((int) $userData['verified'] === 1) { $this->onLoginSuccessful($userData['id'], $userData['email'], $userData['username'], $userData['status'], false); // continue to support the old parameter format