summaryrefslogtreecommitdiff
path: root/app/templates/signup.html
blob: 472fdafed3c8b55f57af6d8dfc7e9d50470b56ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{% block body %}
{% if session['logged_in'] %}

You're logged in already! <a href="/logout">Logout</a>.

{% else %}
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=0.5, maximum-scale=3.0, user-scalable=yes" />
<p>{{ get_flashed_messages()[0] | safe }}</p>

<p>Sign up here.</p>

<form action="/signup" 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 %}