feat(core): Check password strength on login (SQL Source). Closes #6025

This commit is contained in:
smizrahi
2024-12-02 10:59:51 +01:00
parent 5030922a7c
commit fe6836084e
9 changed files with 20 additions and 30 deletions
+1 -1
View File
@@ -219,7 +219,7 @@ static const NSString *kJwtKey = @"jwt";
if ([*additionalLoginInformations objectForKey:@"userPolicies"]) {
translations = [[NSMutableDictionary alloc] init];
for (policy in [*additionalLoginInformations objectForKey:@"userPolicies"]) {
[translations setObject:[self labelForKey: [policy objectForKey:@"label"]] forKey: [policy objectForKey:@"label"]];
[translations setObject:[self commonLabelForKey: [policy objectForKey:@"label"]] forKey: [policy objectForKey:@"label"]];
}
[*additionalLoginInformations setObject:[SOGoPasswordPolicy createPasswordPolicyLabels: [*additionalLoginInformations objectForKey:@"userPolicies"] withTranslations: translations]
forKey:@"userPolicies"];