Custom email template rendered via AUTH_APP_URL, mounted in Authentik, and gitignored rendered HTML to avoid localhost hardcoding in prod.
43 lines
1.2 KiB
Plaintext
43 lines
1.2 KiB
Plaintext
{% extends "email/base.html" %}
|
|
|
|
{% load i18n %}
|
|
{% load humanize %}
|
|
|
|
{% block content %}
|
|
<tr>
|
|
<td align="center">
|
|
<h1>{% trans "Réinitialiser votre mot de passe UltiSuite" %}</h1>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="center">
|
|
<table border="0">
|
|
<tr>
|
|
<td align="center" style="max-width: 320px; padding: 20px 0; color: #212124;">
|
|
{% blocktrans with username=user.username %}
|
|
Bonjour {{ username }}, utilisez le bouton ci-dessous pour choisir un nouveau mot de passe UltiSpace.
|
|
{% endblocktrans %}
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="center" class="btn btn-primary">
|
|
<a id="confirm" href="{{AUTH_APP_URL}}/reset-password?flow_token={{ token }}" rel="noopener noreferrer" target="_blank">
|
|
{% trans "Réinitialiser le mot de passe" %}
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
{% endblock %}
|
|
|
|
{% block sub_content %}
|
|
<tr>
|
|
<td style="padding: 20px; font-size: 12px; color: #212124;" align="center">
|
|
{% blocktrans with expires=expires|naturaltime %}
|
|
Si vous n'êtes pas à l'origine de cette demande, ignorez cet e-mail. Le lien est valide {{ expires }}.
|
|
{% endblocktrans %}
|
|
</td>
|
|
</tr>
|
|
{% endblock %}
|