test(user): write tests for login

This commit is contained in:
Ali BARIN
2024-11-11 11:41:45 +00:00
parent d5b4a5d4ac
commit 49b4d6b511
2 changed files with 16 additions and 2 deletions

View File

@@ -223,8 +223,8 @@ class User extends Base {
}
}
login(password) {
return bcrypt.compare(password, this.password);
async login(password) {
return await bcrypt.compare(password, this.password);
}
async generateResetPasswordToken() {