Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Commit

Permalink
♻️ Send email not verified exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandChowdhary committed Oct 24, 2020
1 parent a642b7e commit 915c5ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/auth/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export class AuthService {
});
if (!user) throw new HttpException('User not found', HttpStatus.NOT_FOUND);
if (!user.emails.find(i => i.emailSafe === emailSafe)?.isVerified)
throw new UnauthorizedException();
throw new UnauthorizedException('This email is not verified');
if (!password || !user.password)
throw new HttpException(
'Logging in without passwords is not supported',
Expand Down

0 comments on commit 915c5ae

Please sign in to comment.