Needs work
Project:
Login Security
Version:
2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
14 Nov 2018 at 11:52 UTC
Updated:
24 Feb 2023 at 18:03 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
knyshuk.vova commentedComment #3
knyshuk.vova commentedAdded checkbox "Enable soft user blocking"
If this checked than the user will not be able to submit the log in form again if specified number of login failures reached.
This protection is effective during the time indicated at track time option. When the track time is passed, the expired records with unsuccessful login attempts will be removed based on their creation time and the user will be able to reuse their login attempts. The user will not be blocked completely. The user still can use reset password form to recover their password and login with one-time login link.
Comment #4
knyshuk.vova commentedComment #6
knyshuk.vova commentedImportant
To use soft user blocking you need to configure Drupal's flood system.
Drupal don't allow login if the failed attempts limit (flood limit) for this user has been reached. The flood system by default allow 5 failed attempts every 6 hours and cleansed expired attempts after cron execution. The flood limit should be increased to avoid conflicts between similar functionality. For example it may be increased to 500. Otherwise, the user will be blocked by default flood system.
Comment #7
anybody@knyshuk.vova could you reroll this against 2.x?
As MR please.
Comment #10
rpayanmComment #11
anybody@rpayanm sorry the tests are failing, could you have another look?
Comment #12
rpayanmTrying to fix the failure.
Comment #13
rpayanmI fixed the email test and I added a new one
testBlockedAccountWithSoftBlocking, it is failing, and I don't know why. I tested it manually in a Drupal 10.0.1 site on my end and it worked.