🐛 fix login
This commit is contained in:
parent
5f3cea845d
commit
73aeca20de
BIN
package-lock.json
generated
BIN
package-lock.json
generated
Binary file not shown.
@ -40,7 +40,7 @@ router.post(
|
||||
}
|
||||
|
||||
// the salt is saved in the password refer to bcrypt docs
|
||||
const same_password = await bcrypt.compare(password, user.hash);
|
||||
const same_password = await bcrypt.compare(password, user.user_data.hash);
|
||||
if (!same_password) {
|
||||
throw FieldErrors({
|
||||
password: { message: req.t("auth:login.INVALID_PASSWORD"), code: "INVALID_PASSWORD" },
|
||||
|
||||
Reference in New Issue
Block a user