Hello
I need my site to have functionality to allow user to have 10 attempts to get looged in instead of 5 attepmts.

Can you please tell me on which file i need to change the limit ?
I dont want to use any plugins.

Thanks

Comments

Rakash created an issue. See original summary.

cilefen’s picture

Component: forms system » user system
Assigned: Rakash » Unassigned
Issue tags: -D8, -login, -block user
Rakash’s picture

Priority: Normal » Major
cilefen’s picture

Priority: Major » Normal

Have you looked into user.flood in the configuration system?

jack_ry’s picture

You could edit user.flood blob file directly which is not recommended though. Open the blob file in any editor
Search for user_limit
"user_limit";i:5;
You will find the above format

Change the number 5 to 10 . Save the file. Log into database. Go to config table. Search user.mail record & edit it. Upload this newly updated blob and save the record.

Or you could just add a settings form in the drupal backend and update the flood table which is the proper way of doing.

Thanks

Version: 8.5.1 » 8.5.x-dev

Core issues are now filed against the dev versions where changes will be made. Document the specific release you are using in your issue comment. More information about choosing a version.

Version: 8.5.x-dev » 8.9.x-dev

Drupal 8.8.7 was released on June 3, 2020 and is the final full bugfix release for the Drupal 8.8.x series. Branches prior to 8.8.x are not supported, and Drupal 8.8.x will not receive any further development aside from security fixes. Sites should prepare to update to Drupal 8.9.0 or Drupal 9.0.0 for ongoing support.

Bug reports should be targeted against the 8.9.x-dev branch from now on, and new development or disruptive changes should be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 8.9.x-dev » 9.2.x-dev

Drupal 8 is end-of-life as of November 17, 2021. There will not be further changes made to Drupal 8. Bugfixes are now made to the 9.3.x and higher branches only. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.2.x-dev » 9.3.x-dev
cilefen’s picture

Status: Active » Closed (outdated)

There have been no comments on this support request in a few years.

dustinyoder’s picture

you can use the config edit tab on the developer module and filter by user.flood to edit this value without hacking the database blob.
P.S. if you try to do the database edit method above, don't upload to the 'user.mail' record in the database, I think that was a typo. Should be user.flood I believe.