mirror of
https://github.com/healthchecks/healthchecks.git
synced 2024-11-21 15:17:57 +00:00
e3aedd3b03
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.
28 lines
507 B
HTML
28 lines
507 B
HTML
{% extends "emails/base.html" %}
|
|
{% load hc_extras %}
|
|
|
|
{% block content %}
|
|
Hello,<br />
|
|
|
|
<br />
|
|
|
|
We send a confirmation code before performing sensitive actions on {% site_name%}.<br />
|
|
Your confirmation code is:<br />
|
|
<br />
|
|
<div style="font-family: monospace; font-weight: bold; font-size: 24px">
|
|
{{ sudo_code }}
|
|
</div>
|
|
<br />
|
|
|
|
Note: this code is only valid for 15 minutes.<br />
|
|
|
|
<br />
|
|
{% endblock %}
|
|
|
|
{% block content_more %}
|
|
All the Best,<br>
|
|
The {% site_name %} Team
|
|
<br /><br />
|
|
|
|
{% endblock %}
|