mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-23 10:53:01 +00:00
🐛 fix login
This commit is contained in:
1 parent
5f3cea845d
commit
73aeca20de
2 files changed
+1
-1
No files matched your search
@@ -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