fix(core): Add + = special characters in password policy

This commit is contained in:
smizrahi
2023-05-10 09:39:38 +02:00
parent d802b92a13
commit a5d4715e76
+1 -1
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];
}