mercury/web/templates/auth/login.tpl

34 lines
940 B
Smarty
Raw Normal View History

2023-09-03 04:11:56 +02:00
{% extends 'base.tpl' %}
{% block title %}
2023-09-04 03:33:13 +02:00
Log in • {{ config.Name }}
2023-09-03 04:11:56 +02:00
{% endblock %}
{% block content %}
<div class="auth">
2023-09-04 03:33:13 +02:00
{% if flash_message %}
<p>{{ flash_message }}</p>
{% endif %}
{% if not totp %}
<form method="post">
<p>
<label for="username">Username</label>
<input type="text" name="username" />
</p>
<p>
<label for="username">Password</label>
<input type="password" name="password" />
</p>
<input type="submit" value="Log in" />
</form>
{% else %}
<form method="post">
<p>
<label for="totp_code">Two-factor authentication code</label>
<input type="text" name="totp_code" />
</p>
<input type="text" name="totp_ticket" value="{{ totp_ticket }}" disabled />
<input type="submit" value="Log in" />
</form>
{% endif %}
2023-09-03 04:11:56 +02:00
</div>
{% endblock %}