🐛 fix login

This commit is contained in:
Flam3rboy
2021-04-06 04:10:24 +02:00
parent 5f3cea845d
commit 73aeca20de
2 changed files with 1 additions and 1 deletions
BIN
View File
Binary file not shown.
+1 -1
View File
@@ -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" },