From 2f36fa55fe5f4e8136198a0f26dd8b4254b43433 Mon Sep 17 00:00:00 2001 From: smizrahi Date: Tue, 4 Apr 2023 17:18:05 +0200 Subject: [PATCH] fix(core): Add . , : ; special characters in password policy --- SoObjects/SOGo/SOGoPasswordPolicy.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SoObjects/SOGo/SOGoPasswordPolicy.m b/SoObjects/SOGo/SOGoPasswordPolicy.m index 377ec80c9..5563cf9b3 100644 --- a/SoObjects/SOGo/SOGoPasswordPolicy.m +++ b/SoObjects/SOGo/SOGoPasswordPolicy.m @@ -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]; }