forked from mirror/Part-DB.Part-DB-server
Added an mechanism to reset passwords via mail.
This commit is contained in:
parent
0716b8ff93
commit
6a0d027675
20 changed files with 2373 additions and 64 deletions
30
templates/mail/pw_reset.html.twig
Normal file
30
templates/mail/pw_reset.html.twig
Normal file
|
@ -0,0 +1,30 @@
|
|||
{% extends "mail/base.html.twig" %}
|
||||
|
||||
{% block content %}
|
||||
<row>
|
||||
<columns>
|
||||
<h4>Hi {{ user.fullName }},</h4>
|
||||
somebody (hopefully you) requested an reset of your password.
|
||||
If this request was not made by you, ignore this email.
|
||||
<br>
|
||||
<button class="large expand" href="{{ url('pw_reset_new_pw', {user: user.name, token: token}) }}">Click here to reset password</button>
|
||||
<br>
|
||||
If this dont work for you. Go to <a href="{{ url('pw_reset_new_pw') }}">{{ url('pw_reset_new_pw') }}</a>
|
||||
and enter the following info:
|
||||
<callout class="secondary">
|
||||
<row>
|
||||
<columns>
|
||||
<p>
|
||||
<b>Username: </b> {{ user.name }}
|
||||
</p>
|
||||
<p>
|
||||
<b>Token:</b> {{ token }}
|
||||
</p>
|
||||
</columns>
|
||||
</row>
|
||||
</callout>
|
||||
The reset token will be valid until <i>{{ expiration_date|format_datetime }}</i>.
|
||||
</columns>
|
||||
</row>
|
||||
|
||||
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue