login.html
525 Bytes
{% if user %}
<style>pre{white-space:wrap}</style>
<div>Logged in as <strong>{{user}}</strong></div>
{% for client in clients %}
<pre>
{{ client.client_info|tojson }}
{{ client.client_metadata|tojson }}
</pre>
<hr>
{% endfor %}
<br><a href="{{ url_for('.create_client') }}">Create Client</a>
{% else %}
<form action="" method="post">
<input type="text" name="username" placeholder="账号">
<input type="text" name="password" placeholder="密码">
<button type="submit">Login / Signup</button>
</form>
{% endif %}