1 files changed, 1 insertions, 1 deletions
diff --git a/src/routes/auth/login.ts b/src/routes/auth/login.ts
index de7a16d4..15aa2371 100644
--- a/src/routes/auth/login.ts
+++ b/src/routes/auth/login.ts
@@ -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" },
|