From 594aec6929519399307c057a7bedfd448e7d26be Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Wed, 30 Oct 2013 23:44:56 +0100 Subject: Added authentication with Flask-Login. --- pyaggr3g470r/templates/layout.html | 15 +++++++++------ pyaggr3g470r/templates/login.html | 29 +++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 6 deletions(-) create mode 100644 pyaggr3g470r/templates/login.html (limited to 'pyaggr3g470r/templates') diff --git a/pyaggr3g470r/templates/layout.html b/pyaggr3g470r/templates/layout.html index c6d26e50..659c573c 100644 --- a/pyaggr3g470r/templates/layout.html +++ b/pyaggr3g470r/templates/layout.html @@ -38,12 +38,15 @@ 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 %} +
+

Log In

+ + {% for message in form.email.errors %} +
{{ message }}
+ {% endfor %} + + {% for message in form.password.errors %} +
{{ message }}
+ {% endfor %} + +
+ {{ form.hidden_tag() }} + + {{ form.email.label }} + {{ form.email }} +
+ {{ form.password.label }} + {{ form.password }} + +
+ {{ form.submit(class_="btn") }} +
+
+ +{% endblock %} -- cgit