1
0
mirror of https://github.com/delight-im/PHP-Auth.git synced 2025-08-05 23:57:24 +02:00

Move unaffected code outside of try/catch statement

This commit is contained in:
Marco
2023-03-20 09:23:13 +01:00
parent 892512f6e1
commit f9700fcae6

View File

@@ -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();