Remove redundant password strength check

Signed-off-by: Yannick Bungers <git@innay.de>
This commit is contained in:
Yannick Bungers 2023-01-29 21:06:52 +01:00 committed by Philip Molares
parent 8023b126a2
commit 7f8371fec2

View file

@ -132,7 +132,6 @@ export class IdentityService {
*/
async createLocalIdentity(user: User, password: string): Promise<Identity> {
const identity = Identity.create(user, ProviderType.LOCAL, false);
await this.checkPasswordStrength(password);
identity.passwordHash = await hashPassword(password);
return await this.identityRepository.save(identity);
}