mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-04 08:01:34 -04:00
Reduce minimum password length to 8 characters
We see over and over in research that people are tripped up by the 10 character requirement because it’s longer than they are used to. Most sites require 6 or 8 characters for a password. It goes against the CESG advice which is to not try increasing password strength by increasing the burden on the user: > Traditionally, organisations impose rules on the length and complexity > of passwords. However, people then tend to use predictable strategies > to generate passwords, so the security benefit is marginal while the > user burden is high. https://www.cesg.gov.uk/guidance/password-guidance-simplifying-your-approach Instead we should be relying on: - [x] two factor authentication - [x] blacklisting common passwords - [ ] locking out users after a number of failed logins (not sure this is working)
This commit is contained in:
@@ -72,7 +72,7 @@ def mobile_number():
|
||||
def password(label='Password'):
|
||||
return PasswordField(label,
|
||||
validators=[DataRequired(message='Can’t be empty'),
|
||||
Length(10, 255, message='Must be at least 10 characters'),
|
||||
Length(8, 255, message='Must be at least 8 characters'),
|
||||
Blacklist(message='That password is blacklisted, too common')])
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user