silverstripe-framework/tests/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
..
BasicAuthTest.php API Marked statics private, use Config API instead (#8317) 2013-03-24 17:20:53 +01:00
BasicAuthTest.yml ENHANCEMENT Allowing custom messages and permission codes in BasicAuth::protect_entire_site() 2010-10-18 22:29:35 +00:00
GroupCsvBulkLoaderTest_withExisting.csv ENHANCEMENT Added GroupCsvBulkLoader class to facilitate group imports with permission codes and hierarchy 2009-12-02 09:40:38 +00:00
GroupCsvBulkLoaderTest.csv ENHANCEMENT Added GroupCsvBulkLoader class to facilitate group imports with permission codes and hierarchy 2009-12-02 09:40:38 +00:00
GroupCsvBulkLoaderTest.php API Marked statics private, use Config API instead (#8317) 2013-03-24 17:20:53 +01:00
GroupCsvBulkLoaderTest.yml ENHANCEMENT Added GroupCsvBulkLoader class to facilitate group imports with permission codes and hierarchy 2009-12-02 09:40:38 +00:00
GroupTest.php FIX Privilege escalation through Group hierarchy setting (SS-2013-003) 2013-09-12 15:42:35 +02:00
GroupTest.yml BUGFIX Nested Group records should be removed, along with the parent. 2012-03-28 22:49:58 +13:00
MemberAuthenticatorTest.php API Marked statics private, use Config API instead (#8317) 2013-03-24 17:20:53 +01:00
MemberCsvBulkLoaderTest_cleartextpws.csv MINOR Added MemberCsvBulkLoaderTest->testCleartextPasswordsAreHashedWithDefaultAlgo() 2010-02-12 00:58:10 +00:00
MemberCsvBulkLoaderTest_withGroups.csv ENHANCEMENT MemberCsvBulkLoader for easy member import with group associations 2009-12-02 09:40:33 +00:00
MemberCsvBulkLoaderTest.csv ENHANCEMENT MemberCsvBulkLoader for easy member import with group associations 2009-12-02 09:40:33 +00:00
MemberCsvBulkLoaderTest.php Merge branch '3.0' into 3.1 2013-07-05 10:17:14 +12:00
MemberCsvBulkLoaderTest.yml ENHANCEMENT MemberCsvBulkLoader for easy member import with group associations 2009-12-02 09:40:33 +00:00
MemberTest.php BUG FailedLoginCount reset 2013-10-18 13:48:11 +01:00
MemberTest.yml API CHANGE Member->canEdit() returns false if the editing member has lower permissions than the edited member, for example if a member with CMS_ACCESS_SecurityAdmin permissions tries to edit an ADMIN (fixes #5651) (from r110856) 2010-10-19 02:46:26 +00:00
PasswordEncryptorTest.php FIX Remove instances of lines longer than 120c 2012-09-30 17:18:13 +13:00
PasswordValidatorTest.php Fixed PHPUnit assertions for incomplete tests in core 2012-11-23 15:16:39 +01:00
PermissionCheckboxSetFieldTest.php API Marked statics private, use Config API instead (#8317) 2013-03-24 17:20:53 +01:00
PermissionCheckboxSetFieldTest.yml MINOR Using BlankPage template in SecurityTest, BasicAuthTest to remove ContentController dependency 2011-03-29 18:07:55 +13:00
PermissionRoleTest.php FIX Privilege escalation through APPLY_ROLES assignment (SS-2013-005) 2013-09-12 15:42:36 +02:00
PermissionRoleTest.yml FEATURE: added several tests for PermissionCheckboxSetField, PermissionRole and Group (from r94887) 2009-12-16 05:43:59 +00:00
PermissionTest.php API Marked statics private, use Config API instead (#8317) 2013-03-24 17:20:53 +01:00
PermissionTest.yml FIX: ensure that permissions_for_member() accounts for denied permissions. 2012-07-01 17:55:20 +12:00
RandomGeneratorTest.php API Hash autologin tokens before storing in the database. 2012-11-09 11:29:42 +01:00
SecurityDefaultAdminTest.php Fixed PHPUnit assertions for incomplete tests in core 2012-11-23 15:16:39 +01:00
SecurityTest.php Member.lock_out_delay_mins configurable, password security docs 2013-07-11 09:47:28 +02:00
SecurityTokenTest.php Method visibility according to coding conventions 2012-09-20 10:46:59 +02:00