mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-07-27 11:41:36 +00:00
Ensure that the Password reset link is generated on a trusted domain, and cannot be manipulated by an attacker by setting the host header
This commit is contained in:
parent
3f7dd59dd1
commit
65631dde4c
4 changed files with 278 additions and 3 deletions
|
|
@ -6,9 +6,9 @@
|
|||
<h4>{% trans with {'%name%': user.fullName|escape } %}email.hi %name%{% endtrans %},</h4>
|
||||
{% trans %}email.pw_reset.message{% endtrans %}
|
||||
<br>
|
||||
<button class="large expand" href="{{ url('pw_reset_new_pw', {user: user.name, token: token}) }}">{% trans %}email.pw_reset.button{% endtrans %}</button>
|
||||
<button class="large expand" href="{{ reset_url }}">{% trans %}email.pw_reset.button{% endtrans %}</button>
|
||||
<br>
|
||||
{% trans with {'%url%': url('pw_reset_new_pw') } %}email.pw_reset.fallback{% endtrans %}:
|
||||
{% trans with {'%url%': reset_url_fallback } %}email.pw_reset.fallback{% endtrans %}:
|
||||
<callout class="secondary">
|
||||
<row>
|
||||
<columns>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue