Remove error when new_psw==old_psw (#3637)

This commit is contained in:
martmull
2024-01-26 12:11:46 +01:00
committed by GitHub
parent 49b22eeec6
commit b49a8b84db

View File

@ -259,10 +259,6 @@ export class AuthService {
assert(isPasswordValid, 'Password too weak', BadRequestException);
const isPasswordSame = await compareHash(newPassword, user.passwordHash);
assert(!isPasswordSame, 'Password cannot be repeated', BadRequestException);
const newPasswordHash = await hashPassword(newPassword);
await this.userRepository.update(userId, {