diff options
author | Marian Sigler <m@qjym.de> | 2012-09-21 00:57:46 +0200 |
---|---|---|
committer | Marian Sigler <m@qjym.de> | 2012-09-21 00:57:46 +0200 |
commit | 597db4fa95aab501de422f410c46a91bc6c6bbbd (patch) | |
tree | 520eb8771a15d7c8afdad898c238cf636c0a00cb /templates/index.html | |
parent | 5bcca89bbf51a907add9921c59e9ed14c57623d8 (diff) | |
download | web-597db4fa95aab501de422f410c46a91bc6c6bbbd.tar.gz web-597db4fa95aab501de422f410c46a91bc6c6bbbd.tar.bz2 web-597db4fa95aab501de422f410c46a91bc6c6bbbd.zip |
Use Flask-WTForms because it adds CSRF protection
Diffstat (limited to 'templates/index.html')
-rw-r--r-- | templates/index.html | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/templates/index.html b/templates/index.html index cb9c238..9177dea 100644 --- a/templates/index.html +++ b/templates/index.html @@ -7,8 +7,11 @@ {%- else %} <p><a href="/register">Account erstellen</a></p> <form action="" method="post"> - {{ render_field(form.username) }} - {{ render_field(form.password) }} + <dl> + {{ render_field(form.username) }} + {{ render_field(form.password) }} + </dl> + {{ form.csrf_token }} <input type="submit" value="Login" /> </form> {%- endif %} |