diff options
author | Hui Lan <lanhui@zjnu.edu.cn> | 2019-11-01 20:51:19 +0800 |
---|---|---|
committer | Hui Lan <lanhui@zjnu.edu.cn> | 2019-11-01 20:51:19 +0800 |
commit | a8f6a99bb3d3dba85705ed7df93145c28168d659 (patch) | |
tree | b21a324eb857b0b236ea76f22692e18420258e45 /app/templates/login.html |
englishpal: first commit
Diffstat (limited to 'app/templates/login.html')
-rw-r--r-- | app/templates/login.html | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/app/templates/login.html b/app/templates/login.html new file mode 100644 index 0000000..d70b042 --- /dev/null +++ b/app/templates/login.html @@ -0,0 +1,14 @@ +{% block body %}
+{% if session['logged_in'] %}
+
+You're logged in already!
+
+{% else %}
+<form action="/login" method="POST">
+ <p><input type="username" name="username" placeholder="邮箱地址、电话号码"></p>
+ <p><input type="password" name="password" placeholder="密码"></p>
+ <p><input type="submit" value="登录"></p>
+</form>
+{% endif %}
+{% endblock %}
+
|