2022-01-26 21:10:09 +08:00
|
|
|
{% 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">
|
2022-01-27 13:02:27 +08:00
|
|
|
<p><input type="username" name="username" placeholder="邮箱地址、电话号码" required="required"></p>
|
2022-06-14 14:20:24 +08:00
|
|
|
<p><input required type="password" name="password" placeholder="密码"></p>
|
2022-01-26 21:10:09 +08:00
|
|
|
<p><input type="submit" value="注册"></p>
|
|
|
|
</form>
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|
|
|
|
|