0
0
Fork 0
mirror of https://github.com/healthchecks/healthchecks.git synced 2025-04-08 06:30:05 +00:00
healthchecks_healthchecks/templates/accounts/sudo.html
Pēteris Caune e3aedd3b03
Add require_sudo_mode decorator
Planning to use it for sensitive operations (add/remove security keys),
change email, change password, close account.

The decorator sends a six-digit confirmation code to user's email
and renders a form for entering it back. If the user enters the
correct code, the decorators sets a sudo=active marker in
user's session, valid for 30 minutes.
2020-11-13 11:08:06 +02:00

39 lines
1 KiB
HTML

{% extends "base.html" %}
{% block content %}
<div class="row">
<div class="col-sm-6 col-sm-offset-3">
<div class="hc-dialog">
<h1>Enter a Confirmation Code</h1>
<br />
<p>
We have sent a confirmation code to your email
address. Please enter it below to continue:
</p>
<form method="POST">
{% csrf_token %}
<div class="form-group {% if wrong_code %}has-error{% endif %}">
<input
class="form-control input-lg"
type="text" name="sudo_code" />
{% if wrong_code %}
<div class="help-block">The entered code was not correct.</div>
{% endif %}
</div>
<button
class="btn btn-lg btn-primary btn-block"
type="submit">
Continue
</button>
</form>
</div>
</div>
</div>
{% endblock %}