[extensions-web: 9/11] auth: use default reset url
- From: Yuri Konotopov <ykonotopov src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web: 9/11] auth: use default reset url
- Date: Tue, 29 Nov 2016 19:46:06 +0000 (UTC)
commit 6bea4252c8e4881b434a509f35b0faa237176a92
Author: Yuri Konotopov <ykonotopov gnome org>
Date: Tue Nov 29 22:21:50 2016 +0300
auth: use default reset url
...d_reset_email.html => password_reset_email.txt} | 2 +-
sweettooth/auth/urls.py | 5 -----
2 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/sweettooth/auth/templates/registration/password_reset_email.html
b/sweettooth/auth/templates/registration/password_reset_email.txt
similarity index 60%
rename from sweettooth/auth/templates/registration/password_reset_email.html
rename to sweettooth/auth/templates/registration/password_reset_email.txt
index 7654ad5..6fc3444 100644
--- a/sweettooth/auth/templates/registration/password_reset_email.html
+++ b/sweettooth/auth/templates/registration/password_reset_email.txt
@@ -1,7 +1,7 @@
You have requested a password reset on {{ site_name }}. Please follow the link
to reset your password.
- https://extensions.gnome.org/{% url 'auth_password_reset_confirm' uidb64=uid token=token %}
+ https://extensions.gnome.org{% url 'auth_password_reset_confirm' uidb64=uid token=token %}
Thanks!
the GNOME Shell Extensions team
diff --git a/sweettooth/auth/urls.py b/sweettooth/auth/urls.py
index 77b2799..2187202 100644
--- a/sweettooth/auth/urls.py
+++ b/sweettooth/auth/urls.py
@@ -21,11 +21,6 @@ urlpatterns = patterns('',
url(r'settings/(?P<user>.+)', TemplateView.as_view(template_name='registration/settings.html'),
name='auth-settings'),
- url(r'^password/reset/$', auth_views.password_reset,
- {'post_reset_redirect': 'auth_password_reset_done',
- 'email_template_name': 'registration/password_reset_email.html'},
- name='auth_password_reset'),
-
url(r'', include('registration.backends.default.urls')),
url(r'^profile/(?P<user>.+)', views.profile, name='auth-profile'),
url(r'^profile/', views.profile_redirect, name='auth-profile'),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]