diff --git a/src/Auth.php b/src/Auth.php index 8bdd4cc..f456e6e 100644 --- a/src/Auth.php +++ b/src/Auth.php @@ -1457,12 +1457,12 @@ final class Auth extends UserManager { 'SELECT resettable FROM ' . $this->makeTableName('users') . ' WHERE id = ?', [ $this->getUserId() ] ); - - return (int) $enabled === 1; } catch (Error $e) { throw new DatabaseError($e->getMessage()); } + + return (int) $enabled === 1; } else { throw new NotLoggedInException();