mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-06-12 00:50:40 +00:00
simplify form code
This commit is contained in:
@ -23,7 +23,7 @@ class RegistrationForm(FlaskForm):
|
||||
username = StringField('Username',
|
||||
validators=[
|
||||
InputRequired(),
|
||||
Length(min=1, max=64),
|
||||
Length(1, 64),
|
||||
Regexp(
|
||||
USERNAME_REGEX,
|
||||
message='Usernames must have only letters, numbers, dots or underscores' # noqa
|
||||
|
Reference in New Issue
Block a user