fix(security) : fix a security issue introduced in 5.11.1

This commit is contained in:
Hivert Quentin
2024-10-11 15:10:19 +02:00
parent a466628126
commit 04a9a8773d

View File

@@ -643,11 +643,15 @@ static const NSString *kObfuscatedSecondaryEmailKey = @"obfuscatedSecondaryEmail
allowed = YES;
if([domainsKnown length] == 0 && [domainsAllowed length] == 0)
{
[self errorWithFormat: @"SOGoForbidUnknownDomainsAuth is set but sogo don't know any domains"];
return NO;
}
else if(!allowed)
{
[self errorWithFormat: @"User domain is unknown or not allowed: %@", userDomain];
return allowed;
return NO;
}
}
// We check the fail count per user in memcache (per server). If the