From 83df3e4f742426afd24805305f50ae7ef79b0459 Mon Sep 17 00:00:00 2001 From: VVX7 Date: Wed, 2 Oct 2019 17:14:22 -0400 Subject: [PATCH] chg: [authentication] increased password field length to 255. minor changes to login page. --- server.py | 4 ++-- templates/login.html | 42 +++++++----------------------------------- 2 files changed, 9 insertions(+), 37 deletions(-) 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() }}

-{# #} -
+
-
-