Browse Source

fix: user validate logic correction

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5444/head
Pranav C 2 years ago
parent
commit
32b2145099
  1. 2
      packages/nocodb-nest/src/modules/auth/auth.service.ts

2
packages/nocodb-nest/src/modules/auth/auth.service.ts

@ -23,7 +23,7 @@ export class AuthService {
if (user) {
const { password, salt, ...result } = user;
const hashedPassword = await promisify(bcrypt.hash)(password, user.salt);
const hashedPassword = await promisify(bcrypt.hash)(pass, user.salt);
if (user.password === hashedPassword) {
return result;
}

Loading…
Cancel
Save