summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-04-06 04:10:24 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-04-06 04:10:24 +0200
commit73aeca20de08a2a4034476d6282b256bea431465 (patch)
tree921f97b9bff8d6a0d14cf84efed15a908d3f2c5f /src
parent:sparkles: test client (diff)
downloadserver-73aeca20de08a2a4034476d6282b256bea431465.tar.xz
:bug: fix login
Diffstat (limited to 'src')
-rw-r--r--src/routes/auth/login.ts2
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" },