We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f82cd9 commit 8b486bbCopy full SHA for 8b486bb
src/services/auth.service.ts
@@ -125,7 +125,7 @@ export class AuthService {
125
}
126
127
async login(dto: LoginDto) {
128
- const user = await this.users.findByEmail(dto.email);
+ const user = await this.users.findByEmailWithPassword(dto.email);
129
if (!user) throw new Error('Invalid credentials.');
130
if (user.isBanned) throw new Error('Account banned.');
131
if (!user.isVerified) throw new Error('Email not verified.');
0 commit comments