fix(auth): harden async login boundaries

This commit is contained in:
2026-08-17 00:00:34 +02:00
parent 29bfb41363
commit c34e01e9b9
8 changed files with 426 additions and 124 deletions
+2 -2
View File
@@ -246,10 +246,10 @@ export function createLocalUserRegistry(usersPath: string): LocalUserRegistry {
},
async verify(user: LocalUserRecord | undefined, password: string): Promise<boolean> {
if (!user || !user.enabled) {
verifyWithDummy(password);
await verifyWithDummy(password);
return false;
}
return verifyPassword(password, user.passwordHash);
return await verifyPassword(password, user.passwordHash);
},
};
}