hezčí text mailu o změně hesla
This commit is contained in:
parent
567fd1f7d3
commit
a17ae6c87a
3 changed files with 11 additions and 0 deletions
|
@ -0,0 +1,8 @@
|
||||||
|
Ahoj!
|
||||||
|
|
||||||
|
Obdrželi jsme od Tebe žádost o obnovu hesla uživatele {{ user }} na webu M&M.
|
||||||
|
Pro zadání nového hesla přejdi na následující stránku:
|
||||||
|
{{ protocol}}://{{ domain }}{% url 'password_reset_confirm' uidb64=uid token=token %}
|
||||||
|
|
||||||
|
S pozdravem,
|
||||||
|
organizátoři M&M
|
|
@ -0,0 +1 @@
|
||||||
|
Změna hesla na webu M&M
|
|
@ -1239,6 +1239,8 @@ class PasswordResetView(auth_views.PasswordResetView):
|
||||||
# TODO: vlastní email_template_name a subject_template_name a html_email_template_name
|
# TODO: vlastní email_template_name a subject_template_name a html_email_template_name
|
||||||
success_url = reverse_lazy('reset_password_done')
|
success_url = reverse_lazy('reset_password_done')
|
||||||
from_email = 'login@mam.mff.cuni.cz'
|
from_email = 'login@mam.mff.cuni.cz'
|
||||||
|
email_template_name = 'seminar/registrace/password_reset_email.html'
|
||||||
|
subject_template_name = 'seminar/registrace/password_reset_subject.txt'
|
||||||
|
|
||||||
class PasswordResetDoneView(auth_views.PasswordResetDoneView):
|
class PasswordResetDoneView(auth_views.PasswordResetDoneView):
|
||||||
""" Poslali jsme e-mail (pokud bylo kam)). """
|
""" Poslali jsme e-mail (pokud bylo kam)). """
|
||||||
|
|
Loading…
Reference in a new issue