1
0
mirror of https://github.com/binary-kitchen/doorlockd synced 2024-12-22 02:14: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):
username = StringField('Username', [Length(min=4, max=25)])
username = StringField('Username', [Length(min=3, max=25)])
password = PasswordField('Password', [DataRequired()])
open = SubmitField('Open')
close = SubmitField('Close')