mirror of
https://github.com/spacebarchat/server.git
synced 2026-05-14 05:25:12 +00:00
🐛 fix login
This commit is contained in:
Generated
BIN
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