diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-10-30 23:44:56 +0100 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-10-30 23:44:56 +0100 |
commit | 594aec6929519399307c057a7bedfd448e7d26be (patch) | |
tree | 103d93d3210cbb250060cd61f8c95c7bd38d59bd /pyaggr3g470r/templates/login.html | |
parent | this sort is enough fast (diff) | |
download | newspipe-594aec6929519399307c057a7bedfd448e7d26be.tar.gz newspipe-594aec6929519399307c057a7bedfd448e7d26be.tar.bz2 newspipe-594aec6929519399307c057a7bedfd448e7d26be.zip |
Added authentication with Flask-Login.
Diffstat (limited to 'pyaggr3g470r/templates/login.html')
-rw-r--r-- | pyaggr3g470r/templates/login.html | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/pyaggr3g470r/templates/login.html b/pyaggr3g470r/templates/login.html new file mode 100644 index 00000000..fce29054 --- /dev/null +++ b/pyaggr3g470r/templates/login.html @@ -0,0 +1,29 @@ +{% extends "layout.html" %} + +{% block content %} +<div align="center"> + <h2>Log In</h2> + + {% for message in form.email.errors %} + <div class="flash">{{ message }}</div> + {% endfor %} + + {% for message in form.password.errors %} + <div class="flash">{{ message }}</div> + {% endfor %} + + <form action="{{ url_for('login') }}" method=post> + {{ form.hidden_tag() }} + + {{ form.email.label }} + {{ form.email }} + <br /> + {{ form.password.label }} + {{ form.password }} + + <br /> + {{ form.submit(class_="btn") }} + </form> +</div> + +{% endblock %} |