Compare commits
1 Commits
a8ba428e1f
...
6b72bc499a
Author | SHA1 | Date |
---|---|---|
Tim Van Baak | 6b72bc499a |
|
@ -42,7 +42,7 @@ class Admin(UserMixin):
|
||||||
|
|
||||||
|
|
||||||
class LoginForm(FlaskForm):
|
class LoginForm(FlaskForm):
|
||||||
password = PasswordField('Password')
|
password = PasswordField('Password', validators=[DataRequired()])
|
||||||
submit = SubmitField('Submit')
|
submit = SubmitField('Submit')
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -11,6 +11,9 @@
|
||||||
<form method="post" novalidate>
|
<form method="post" novalidate>
|
||||||
{{ form.hidden_tag() }}
|
{{ form.hidden_tag() }}
|
||||||
<p>{{ form.password.label }}<br>{{ form.password(size=32) }}
|
<p>{{ form.password.label }}<br>{{ form.password(size=32) }}
|
||||||
|
{% for error in form.password.errors %}
|
||||||
|
<br><span style="color: #ff0000">{{ error }}</span>
|
||||||
|
{% endfor %}</p>
|
||||||
<p>{{ form.submit() }}</p>
|
<p>{{ form.submit() }}</p>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue