Skip to content

Commit

Permalink
Updated AP to not accept spaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
seamustuohy committed Dec 3, 2016
1 parent c3f6121 commit c89d821
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion copilot/views/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ class AdminConfig(Config):
check_old_password])
ap_name = TextField('Trainee Access Point Name', validators=[
Optional(),
Length(min=1, max=31)])
Length(min=1, max=31),
Regexp("^[^\s]*$", message="AP Name cannot contain any spaces or tabs.")])
ap_password = PasswordField('Access Point Password', validators=[
Optional(),
Length(min=8, max=63),
Expand Down

0 comments on commit c89d821

Please sign in to comment.