mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-18 18:51:32 +10:00
- upgrade react-resizable-panels to latest version
- update translations - remove cypress - add await to all return blocks
This commit is contained in:
@ -152,8 +152,6 @@ export class AuthService {
|
||||
const text = `Please click on the link below to reset your password:\n\n${url}`;
|
||||
|
||||
await this.mailService.sendEmail({ to: email, subject, text });
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
async updatePassword(email: string, password: string) {
|
||||
@ -188,8 +186,6 @@ export class AuthService {
|
||||
const text = `Please verify your email address by clicking on the link below:\n\n${url}`;
|
||||
|
||||
await this.mailService.sendEmail({ to: email, subject, text });
|
||||
|
||||
return;
|
||||
} catch (error) {
|
||||
throw new InternalServerErrorException(error);
|
||||
}
|
||||
|
||||
@ -13,7 +13,7 @@ export class LocalStrategy extends PassportStrategy(Strategy, "local") {
|
||||
|
||||
async validate(identifier: string, password: string) {
|
||||
try {
|
||||
return this.authService.authenticate({ identifier, password });
|
||||
return await this.authService.authenticate({ identifier, password });
|
||||
} catch (error) {
|
||||
throw new BadRequestException(ErrorMessage.InvalidCredentials);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user