fix: Delete unnecesary reset email template. Clean default html_email_template_name attribute in GASPasswordResetView

This commit is contained in:
Leo Hakim 2023-12-20 09:51:57 +01:00
parent 312987410b
commit 9fe962978e
Signed by: leo
GPG Key ID: AE12824B1E64CD7C
2 changed files with 0 additions and 15 deletions

View File

@ -55,7 +55,6 @@ class GASLoginView(GASContextMixin, LoginView):
class GASPasswordResetView(GASContextMixin, PasswordResetView):
template_name = "gas/reset.html"
html_email_template_name = "registration/password_reset_email.html"
success_url = reverse_lazy("gas:password_reset_done")

View File

@ -1,14 +0,0 @@
{% load i18n %}{% autoescape off %}
{% blocktranslate %}You're receiving this email because you requested a password reset for your user account at {{ site_name }}.{% endblocktranslate %}
{% translate "Please go to the following page and choose a new password:" %}
{% block reset_link %}
{{ protocol }}://{{ domain }}{% url 'gas:password_reset_confirm' uidb64=uid token=token %}
{% endblock %}
{% translate 'Your username, in case youve forgotten:' %} {{ user.get_username }}
{% translate "Thanks for using our site!" %}
{% blocktranslate %}The {{ site_name }} team{% endblocktranslate %}
{% endautoescape %}