Missing critical way to alter flood protection before it denies

Created on 21 January 2011, over 13 years ago
Updated 29 August 2023, 10 months ago

Example: Employees all login from a same set of IPs, and you don't want to shut down everyone if 25 people enter their wrong password 2 times in an hour, but still limit any non-external IP addresses.

The flood_is_allowed() function has no way of allowing anything else to change that result, limit, or window. It doesn't use drupal_alter() nor db_select() (which would allow us to alter the query directly).

πŸ› Bug report
Status

Closed: outdated

Version

9.5

Component
BaseΒ  β†’

Last updated about 6 hours ago

Created by

πŸ‡ΊπŸ‡ΈUnited States Dave Reid Nebraska πŸ‡ΊπŸ‡Έ

Live updates comments and jobs are added and updated live.
  • Needs backport to D7

    After being applied to the 8.x branch, it should be considered for backport to the 7.x branch. Note: This tag should generally remain even after the backport has been written, approved, and committed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΈπŸ‡ͺSweden dajjen Drupalcon Prague

    Is this still an issue?
    The old flood_is_allowed have been replaced by the flood interface (Drupal\Core\Flood\FloodInterface) that you can apply to a class and implement you own isAllowed method.

  • Status changed to Closed: outdated 10 months ago
  • πŸ‡¬πŸ‡§United Kingdom catch

    Yeah I think this is outdated. The user behaviour is defined by configuration, the flood service can be swapped out, and user module has it's own UserFloodControl class/service that can also be swapped out now.

Production build 0.69.0 2024