diff --git a/server.py b/server.py index 6e30692..78a2823 100755 --- a/server.py +++ b/server.py @@ -168,8 +168,8 @@ def login(): class LoginForm(Form): - username = StringField('Username', [validators.Length(min=4, max=50)]) - password = PasswordField('Password', [validators.Length(min=4, max=50)]) + username = StringField('Username', [validators.Length(max=255)]) + password = PasswordField('Password', [validators.Length(max=255)]) submit = SubmitField('Sign In') diff --git a/templates/login.html b/templates/login.html index b02670a..0d6cd1b 100644 --- a/templates/login.html +++ b/templates/login.html @@ -12,74 +12,46 @@ - -
-
-
-
-
-
-
-
-
- - - -
-
+
- + - +
-
-
- Welcome to MISP-Dashboard -
- Login
+
Welcome to MISP-Dashboard
{{ form.password.label }}
- {{ form.password(size=32) }} + {{ form.password(size=32, maxlength=255) }}

{{ form.submit() }}

-{# #} -
+
-
-