mirror of
https://github.com/sct/overseerr.git
synced 2025-09-17 17:24:35 +02:00
fix(auth): handle sign-in attempts from emails with no password (#933)
* fix(auth): dont reject promise when missing password * fix(auth): use static fallback error message
This commit is contained in:
@@ -108,11 +108,11 @@ export class User {
|
||||
}
|
||||
|
||||
public passwordMatch(password: string): Promise<boolean> {
|
||||
return new Promise((resolve, reject) => {
|
||||
return new Promise((resolve) => {
|
||||
if (this.password) {
|
||||
resolve(bcrypt.compare(password, this.password));
|
||||
} else {
|
||||
return reject(false);
|
||||
return resolve(false);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user