fix: bug in the send reminder send

This commit is contained in:
mahyargdz
2025-03-08 21:55:24 +03:30
parent 15187680ce
commit 65535af4f7
5 changed files with 13 additions and 11 deletions
+1 -1
View File
@@ -206,7 +206,7 @@ export class AuthService {
const { user } = await this.usersService.findOneById(userId);
const passCompare = await this.passwordService.comparePassword(updateDto.password, user.password);
if (!passCompare) throw new BadRequestException(AuthMessage.INVALID_PASSWORD);
if (!passCompare) throw new BadRequestException(AuthMessage.CURRENT_PASSWORD_INVALID);
if (updateDto.newPassword !== updateDto.repeatPassword) throw new BadRequestException(AuthMessage.INVALID_REAPET_PASSWORD);