[bug] Fix login attempts to disabled users

This commit is contained in:
Cohee
2024-10-09 01:54:56 +03:00
parent 07d6808e4e
commit 0ada5407ee
2 changed files with 4 additions and 4 deletions

View File

@@ -636,7 +636,7 @@ async function autheliaUserLogin(request) {
for (const userHandle of userHandles) {
if (remoteUser == userHandle) {
const user = await storage.getItem(toKey(userHandle));
if (user) {
if (user && user.enabled) {
request.session.handle = userHandle;
return true;
}