1
0
mirror of https://github.com/binary-kitchen/doorlockd synced 2024-12-22 10:24:26 +01:00

Change minimum length of username string from 4 to 3

because of some users with 3 character usenames

Signed-off-by: Thomas Schmid <thomas.schmid@oth-regensburg.de>
This commit is contained in:
Thomas Schmid 2018-04-11 23:49:44 +02:00 committed by Ralf Ramsauer
parent 6a018b7290
commit 84d61c04db

View File

@ -333,7 +333,7 @@ class Logic:
class AuthenticationForm(FlaskForm): class AuthenticationForm(FlaskForm):
username = StringField('Username', [Length(min=4, max=25)]) username = StringField('Username', [Length(min=3, max=25)])
password = PasswordField('Password', [DataRequired()]) password = PasswordField('Password', [DataRequired()])
open = SubmitField('Open') open = SubmitField('Open')
close = SubmitField('Close') close = SubmitField('Close')