| |
| Line 114 |
Line 114 |
| 114 |
|
114 |
|
| 115 |
# Authentication and accounts |
115 |
# Authentication and accounts |
| 116 |
(r'^account/login/$', 'djblets.auth.views.login', |
116 |
(r'^account/login/$', 'djblets.auth.views.login', |
| 117 |
{'next_page': '/dashboard/'}), |
117 |
{'next_page': '/dashboard/', |
|
|
118 |
'extra_context': {'BUILTIN_AUTH': settings.BUILTIN_AUTH}}), |
| 118 |
(r'^account/logout/$', 'django.contrib.auth.views.logout', |
119 |
(r'^account/logout/$', 'django.contrib.auth.views.logout', |
| 119 |
{'next_page': settings.LOGIN_URL}), |
120 |
{'next_page': settings.LOGIN_URL}), |
| 120 |
(r'^account/preferences/$', 'reviewboard.accounts.views.user_preferences',), |
121 |
(r'^account/preferences/$', 'reviewboard.accounts.views.user_preferences',), |
| |
| |
| Line 125 |
Line 126 |
| 125 |
(r'^account/register/$', 'djblets.auth.views.register', |
126 |
(r'^account/register/$', 'djblets.auth.views.register', |
| 126 |
{'next_page': '/dashboard/'}), |
127 |
{'next_page': '/dashboard/'}), |
| 127 |
) |
128 |
) |
|
|
129 |
else: |
|
|
130 |
urlpatterns += patterns('', |
|
|
131 |
(r'^account/register/$', |
|
|
132 |
'django.views.generic.simple.redirect_to', |
|
|
133 |
{'url': '/account/login/'})) |
| 128 |
|
134 |
|
| 129 |
# Add static media if running in DEBUG mode |
135 |
# Add static media if running in DEBUG mode |
| 130 |
if settings.DEBUG: |
136 |
if settings.DEBUG: |
| |