summaryrefslogtreecommitdiffstats
path: root/apps/patchwork/urls.py
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2010-10-31 19:29:29 -0400
committerJeremy Kerr <jk@ozlabs.org>2011-04-14 17:21:04 +0800
commitc2c6a408c7764fa29389ce160f52776c9308d50a (patch)
tree1c47388b5494210aeed87f56f0c8b6e9fbeb4633 /apps/patchwork/urls.py
parent56e2243f3be7e859666ce0e4e1a8b8b94444f8d4 (diff)
downloadpatchwork-c2c6a408c7764fa29389ce160f52776c9308d50a.tar.bz2
patchwork-c2c6a408c7764fa29389ce160f52776c9308d50a.tar.xz
registration: use EmailConfimation rather than separate registration app
Since we have infrastructure for email confirmations, we no longer need the separate registration app. Requires a migration script, which will delete all inactive users, including those newly added and pending confirmation. Use carefully. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'apps/patchwork/urls.py')
-rw-r--r--apps/patchwork/urls.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/apps/patchwork/urls.py b/apps/patchwork/urls.py
index 27c79fd..6810e3e 100644
--- a/apps/patchwork/urls.py
+++ b/apps/patchwork/urls.py
@@ -19,6 +19,7 @@
from django.conf.urls.defaults import *
from django.conf import settings
+from django.contrib.auth import views as auth_views
urlpatterns = patterns('',
# Example:
@@ -46,6 +47,23 @@ urlpatterns = patterns('',
(r'^user/link/$', 'patchwork.views.user.link'),
(r'^user/unlink/(?P<person_id>[^/]+)/$', 'patchwork.views.user.unlink'),
+ # password change
+ url(r'^user/password-change/$', auth_views.password_change,
+ name='auth_password_change'),
+ url(r'^user/password-change/done/$', auth_views.password_change_done,
+ name='auth_password_change_done'),
+
+ # login/logout
+ url(r'^user/login/$', auth_views.login,
+ {'template_name': 'patchwork/login.html'},
+ name = 'auth_login'),
+ url(r'^user/logout/$', auth_views.logout,
+ {'template_name': 'patchwork/logout.html'},
+ name = 'auth_logout'),
+
+ # registration
+ (r'^register/', 'patchwork.views.user.register'),
+
# public view for bundles
(r'^bundle/(?P<username>[^/]*)/(?P<bundlename>[^/]*)/$',
'patchwork.views.bundle.public'),