[damned-lies] Updated password_reset_confirm url (Django 1.6)



commit 9960284a868ccdc346be13a9d491c0d2d2888412
Author: Claude Paroz <claude 2xlibre net>
Date:   Sat Apr 18 23:52:46 2015 +0200

    Updated password_reset_confirm url (Django 1.6)

 README             |    2 +-
 damnedlies/urls.py |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/README b/README
index 4ef5c15..b890b63 100644
--- a/README
+++ b/README
@@ -8,7 +8,7 @@ You can find the Data model in the /docs directory.
 Requirements
 ============
 
-1 - Django 1.5.X
+1 - Django 1.6.X
 
 2 - Python 2.6 (minimal)
     PIL (python-imaging) or pillow for hackergotchi checks.
diff --git a/damnedlies/urls.py b/damnedlies/urls.py
index 5e2aa30..536bf2f 100644
--- a/damnedlies/urls.py
+++ b/damnedlies/urls.py
@@ -46,7 +46,7 @@ urlpatterns = patterns('',
         kwargs = {'template_name':'registration/password_reset_done.html'},
         name='password_reset_done'),
     url(
-        regex = r'^reset/(?P<uidb36>[0-9A-Za-z]+)-(?P<token>.+)/$',
+        regex = r'^reset/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$',
         view = 'django.contrib.auth.views.password_reset_confirm',
         name='password_reset_confirm'),
     url(


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]