mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-02-17 07:33:57 +00:00
fix(security) : fix a security issue introduced in 5.11.1
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user