silverstripe-framework/security
Thomas Speak d22ca62c6f BUG FailedLoginCount reset
If you fail your maximum login attempts and are locked out, further failed login attempts add to your already existing FailedLoginCount as it is only reset if you log in successfully. This means that if you're locked out, then try again, one failure will automatically lock you out again, regardless of what you set your max limit to.

Example:

lock_out_after_incorrect_logins: 3
FailedLoginCount: 0

The user fails three login attempts.

lock_out_after_incorrect_logins: 3
FailedLoginCount: 3

The user is now locked out.

Lockout time passes.

The user fails their 4th login.

lock_out_after_incorrect_logins: 3
FailedLoginCount: 4

This will continue to happen until the user successfully logs in, without giving them the pre-defined amount of login attempts again due to this condition being met after every incorrect login:
```php
if($this->FailedLoginCount >= self::config()->lock_out_after_incorrect_logins) {
```

FailedLoginTestCount Test Added
2013-10-18 13:48:11 +01:00
..
Authenticator.php Add codesniffer that ensures indentation is with tabs. 2012-12-12 17:33:31 +13:00
BasicAuth.php API Marked statics private, use Config API instead (#8317) 2013-03-24 17:20:53 +01:00
ChangePasswordForm.php BUG If BackURL set, validation errors send the user to wrong place. 2013-06-08 11:34:58 +12:00
Group.php Merge remote-tracking branch 'origin/3.1.0' into 3.1 2013-09-12 17:24:42 +02:00
GroupCsvBulkLoader.php Method visibility according to coding conventions 2012-09-20 10:46:59 +02:00
LoginAttempt.php API Marked statics private, use Config API instead (#8317) 2013-03-24 17:20:53 +01:00
LoginForm.php AJAX friendly responses for Security class 2013-04-26 12:29:35 +01:00
Member.php BUG FailedLoginCount reset 2013-10-18 13:48:11 +01:00
MemberAuthenticator.php API Marked statics private, use Config API instead (#8317) 2013-03-24 17:20:53 +01:00
MemberCsvBulkLoader.php Method visibility according to coding conventions 2012-09-20 10:46:59 +02:00
MemberLoginForm.php Merge remote-tracking branch 'origin/3.1' 2013-10-06 19:07:39 +02:00
MemberPassword.php API Marked statics private, use Config API instead (#8317) 2013-03-24 17:20:53 +01:00
PasswordEncryptor.php API Marked statics private, use Config API instead (#8317) 2013-03-24 17:20:53 +01:00
PasswordValidator.php Allow PasswordValidator to be translated 2013-06-08 10:48:27 +12:00
Permission.php $privileged_permissions visibility (fixes #2464) 2013-09-27 18:56:38 +02:00
PermissionCheckboxSetField.php FIX Disallow permissions assign for APPLY_ROLES (SS-2013-005) 2013-09-12 15:42:43 +02:00
PermissionFailureException.php API CHANGE: Add a PermissionFailureException that can be thrown to trigger a log-in. 2013-01-29 18:10:42 +01:00
PermissionProvider.php FIX Remove instances of lines longer than 120c 2012-09-30 17:18:13 +13:00
PermissionRole.php FIX Privilege escalation through APPLY_ROLES assignment (SS-2013-005) 2013-09-12 15:42:43 +02:00
PermissionRoleCode.php FIX Privilege escalation through APPLY_ROLES assignment (SS-2013-005) 2013-09-12 15:42:43 +02:00
RandomGenerator.php API Hash autologin tokens before storing in the database. 2012-11-09 11:29:42 +01:00
Security.php Merge remote-tracking branch 'origin/3.1' 2013-09-27 19:22:14 +02:00
SecurityToken.php API Hash autologin tokens before storing in the database. 2012-11-09 11:29:42 +01:00