1
0
mirror of https://github.com/matt-fidd/stratos.git synced 2026-01-01 22:19:26 +00:00

Implement User.verifyPassword

This commit is contained in:
2022-02-13 22:18:36 +00:00
parent 8e91966d4b
commit 588ca67745

View File

@@ -45,8 +45,8 @@ class User {
}
verifyPassword(hash) {
async verifyPassword(password) {
return await bcrypt.compare(password, this.password);
}
changePassword(password) {