mirror of
https://github.com/DarkflameUniverse/NexusDashboard.git
synced 2024-11-21 13:07:22 +00:00
cap password length at 40 on registration
due to client limitations
This commit is contained in:
parent
b8bd7c6cba
commit
98c61bcaf1
@ -75,10 +75,12 @@ class CustomRegisterForm(FlaskForm):
|
||||
|
||||
password = PasswordField('Password', validators=[
|
||||
DataRequired(),
|
||||
password_validator
|
||||
password_validator,
|
||||
validators.length(max=40, message="The maximum length of the password is 40 characters due to game client limitations")
|
||||
])
|
||||
retype_password = PasswordField('Retype Password', validators=[
|
||||
validators.EqualTo('password', message='Passwords did not match')
|
||||
validators.EqualTo('password', message='Passwords did not match'),
|
||||
validators.length(max=40, message="The maximum length of the password is 40 characters due to game client limitations")
|
||||
])
|
||||
|
||||
invite_token = HiddenField('Token')
|
||||
|
Loading…
Reference in New Issue
Block a user