fix(core): Add . , : ; special characters in password policy

This commit is contained in:
smizrahi
2023-04-04 17:18:05 +02:00
parent d49ef4047a
commit 2f36fa55fe

View File

@@ -58,7 +58,7 @@ static const NSString *POLICY_MIN_LENGTH = @"POLICY_MIN_LENGTH";
return [NSArray arrayWithObjects: [NSString stringWithFormat:@"(.*[a-z].*){%i}", [count intValue]],
[NSString stringWithFormat:@"(.*[A-Z].*){%i}", [count intValue]],
[NSString stringWithFormat:@"(.*[0-9].*){%i}", [count intValue]],
[NSString stringWithFormat:@"([%$&*(){}!?\\@#].*){%i,}", [count intValue]],
[NSString stringWithFormat:@"([%%$&*(){}!?\\@#.,:;].*){%i,}", [count intValue]],
[NSString stringWithFormat:@".{%i,}", [count intValue]],
nil];
}