Ensure wifi password field accepts 8 characters
This commit is contained in:
parent
e0c30040bc
commit
585458986f
1 changed files with 1 additions and 1 deletions
|
|
@ -15,7 +15,7 @@ def hostname_check(form, field):
|
||||||
def wifi_length_check(form, field):
|
def wifi_length_check(form, field):
|
||||||
if len(field.data) > 63:
|
if len(field.data) > 63:
|
||||||
raise ValidationError(_l('Wifi password cannot be longer than 63 characters.'))
|
raise ValidationError(_l('Wifi password cannot be longer than 63 characters.'))
|
||||||
if len(field.data) in range(1,9):
|
if len(field.data) in range(1,8):
|
||||||
raise ValidationError(_l('Wifi password cannot be shorter than 8 characters.'))
|
raise ValidationError(_l('Wifi password cannot be shorter than 8 characters.'))
|
||||||
|
|
||||||
class LoginForm(FlaskForm):
|
class LoginForm(FlaskForm):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue