mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Treat no password as invalid
This commit is contained in:
@@ -46,6 +46,10 @@ export class AuthenticationService {
|
||||
throw new InvalidCredentialsException();
|
||||
}
|
||||
|
||||
if (!password || !user.password) {
|
||||
throw new InvalidCredentialsException();
|
||||
}
|
||||
|
||||
if (password !== undefined && (await argon2.verify(user.password, password)) === false) {
|
||||
throw new InvalidCredentialsException();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user