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.
2 parents 19d25ea + 022830f commit 9e5b558Copy full SHA for 9e5b558
src/auth/auth.service.ts
@@ -40,6 +40,10 @@ export class AuthService {
40
async verify(email: string, password: string): Promise<any> {
41
const user = await this.userService.verify(email, password);
42
if (!user) {
43
+ const userUseEmail = await this.userService.findByEmail(email);
44
+ if (userUseEmail) {
45
+ throw new ForbiddenException('Wrong password, please check');
46
+ }
47
throw new ForbiddenException(
48
'No account found for the provided email. Please register first.',
49
);
0 commit comments