🐛 fix login

This commit is contained in:
Flam3rboy committed 2021-04-06 04:10:24 +02:00
1 parent 5f3cea845d
commit 73aeca20de
2 files changed
+1 -1

No files matched your search

+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" },