forked from orbit-oss/flask
First part of the tutorial. Many explanations missing but it's a start.
This commit is contained in:
parent
c4f5c2fb9a
commit
1246f4088a
9 changed files with 394 additions and 14 deletions
|
|
@ -4,7 +4,7 @@
|
|||
<div class=page>
|
||||
<h1>Flaskr</h1>
|
||||
<div class=metanav>
|
||||
{% if not g.logged_in %}
|
||||
{% if not session.logged_in %}
|
||||
<a href="{{ url_for('login') }}">log in</a>
|
||||
{% else %}
|
||||
<a href="{{ url_for('logout') }}">log out</a>
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
<dt>Username:
|
||||
<dd><input type=text name=username>
|
||||
<dt>Password:
|
||||
<dd><input type=passowrd name=password>
|
||||
<dd><input type=password name=password>
|
||||
<dd><input type=submit value=Login>
|
||||
</dl>
|
||||
</form>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue