(fix) fixed bad password login interval (fixes #4664)

This commit is contained in:
Ludovic Marcotte
2019-02-19 11:59:49 -05:00
parent 5371838159
commit bc456dcef8
2 changed files with 2 additions and 1 deletions

1
NEWS
View File

@@ -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)
------------------

View File

@@ -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;