mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-11 14:57:12 +00:00
fix(pwd): fix 0 value for password policy
This commit is contained in:
1 parent
6947441943
commit
981df7b2fc
2 files changed
+2
-1
No files matched your search
@@ -75,7 +75,7 @@ static const NSString *SPECIAL_SYMBOL_ALLOWED = @"%$&*(){}!?\\@#.,:;+=\\[\\]\\|<
|
||||
NSNumber *value = [policy objectForKey:@"value"];
|
||||
NSInteger index = [[self policies] indexOfObject: label];
|
||||
|
||||
if (0 < value) {
|
||||
if (0 < [value intValue]) {
|
||||
NSMutableDictionary *newPolicy = [NSMutableDictionary dictionaryWithDictionary: policy];
|
||||
[newPolicy setObject:[[self regexPoliciesWithCount: value] objectAtIndex: index] forKey:@"regex"];
|
||||
[passwordPolicy addObject: newPolicy];
|
||||
|
||||
Reference in new issue
Block a user