nextcloud / password_policy

:lock: Let the admin define certain rules for passwords, e.g. a minimum length
GNU Affero General Public License v3.0
35 stars 19 forks source link

Limit incorrect password attempts before block should be time-dependent, not total #574

Closed Antreesy closed 4 months ago

Antreesy commented 5 months ago

Steps to reproduce

  1. Set password attempts limit to N
  2. Try to log in with incorrect credentials throughout the uncertain timeframe (week, month)
  3. Reach N attempts

Expected behaviour

App should block user after several consequent incorrect attempts within short time interval (like brute-force attack)

Actual behaviour

Regardless when user will reach the limit (month, year), account will be blocked

Nextcloud version: 27.1.7 App version: 1.17.0