diff --git a/NEWS b/NEWS index 9ff0845ff..87dcc746b 100644 --- a/NEWS +++ b/NEWS @@ -21,6 +21,7 @@ Bug fixes - [core] ignore transparent events in time conflict validation (#4539) - [core] fixed yearly recurrence calculator when starting from previous year - [core] changes to contacts are now propagated to lists (#850, #4301, #4617) + - [core] fixed bad password login interval (#4664) 4.0.5 (2019-01-09) ------------------ diff --git a/SoObjects/SOGo/SOGoUserManager.m b/SoObjects/SOGo/SOGoUserManager.m index 1ee92efef..7950bf7e6 100644 --- a/SoObjects/SOGo/SOGoUserManager.m +++ b/SoObjects/SOGo/SOGoUserManager.m @@ -584,7 +584,7 @@ static Class NSNullK; block_time = [sd failedLoginBlockInterval]; if ([[failedCount objectForKey: @"FailedCount"] intValue] >= [sd maximumFailedLoginCount] && - delta_last_request >= [sd maximumFailedLoginInterval] && + delta_last_request < [sd maximumFailedLoginInterval] && delta_start <= block_time ) { *_perr = PolicyAccountLocked;