We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f9b4f3 commit 9c381a2Copy full SHA for 9c381a2
backend/src/auth/auth.service.ts
@@ -76,7 +76,7 @@ export class AuthService {
76
},
77
});
78
79
- if (user && await argon.verify(user.password, dto.password)) {
+ if (user?.password && await argon.verify(user.password, dto.password)) {
80
this.logger.log(`Successful password login for user ${user.email} from IP ${ip}`);
81
return this.generateToken(user);
82
}
0 commit comments