Qwann/move user #13

Merged
narmanli merged 11 commits from qwann/move_user into master 2017-05-16 19:13:53 +02:00
Showing only changes of commit a41d2b99b2 - Show all commits

View file

@ -7,9 +7,9 @@ from users.views import CreateUser
app_name = 'users' app_name = 'users'
urlpatterns = [ urlpatterns = [
# CREATE USER # CREATE USER
url('^create/$', CreateUser.as_view(), name='create_user'), url(r'^create/$', CreateUser.as_view(), name='create_user'),
# LOGIN # LOGIN
url('^login/$', url(r'^login/$',
auth_views.login, auth_views.login,
{'template_name': 'users/login.html', {'template_name': 'users/login.html',
'extra_context': { 'extra_context': {
@ -20,13 +20,13 @@ urlpatterns = [
name='login', name='login',
), ),
# LOGOUT # LOGOUT
url('^logout/$', url(r'^logout/$',
auth_views.logout, auth_views.logout,
{'next_page': reverse_lazy('shared:home'), {'next_page': reverse_lazy('shared:home'),
}, },
name='logout',), name='logout',),
# PASSWORD_CHANGE # PASSWORD_CHANGE
url('^password_change/$', url(r'^password_change/$',
auth_views.password_change, auth_views.password_change,
{'template_name': 'users/change_pass.html', {'template_name': 'users/change_pass.html',
'post_change_redirect': reverse_lazy('shared:home'), 'post_change_redirect': reverse_lazy('shared:home'),
@ -38,7 +38,7 @@ urlpatterns = [
name='password_change'), name='password_change'),
# url('^password_change/done/$', name='password_change_done'), # url('^password_change/done/$', name='password_change_done'),
# RESET PASSWORD # RESET PASSWORD
url('^password_reset/$', url(r'^password_reset/$',
auth_views.password_reset, auth_views.password_reset,
{'template_name': 'users/password_reset.html', {'template_name': 'users/password_reset.html',
'email_template_name': 'email_password_reset.html', 'email_template_name': 'email_password_reset.html',
@ -51,11 +51,11 @@ urlpatterns = [
}, },
name='password_reset'), name='password_reset'),
# PASS RESET DONE # PASS RESET DONE
url('^password_reset/done/$', url(r'^password_reset/done/$',
Home.as_view(), Home.as_view(),
name='password_reset_done'), name='password_reset_done'),
# PASS RESET CONFIRM # PASS RESET CONFIRM
url('^reset/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$', url(r'^reset/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$',
auth_views.password_reset_confirm, auth_views.password_reset_confirm,
{ {
'template_name': 'users/user_form.html', 'template_name': 'users/user_form.html',
@ -67,7 +67,7 @@ urlpatterns = [
}, },
name='password_reset_confirm'), name='password_reset_confirm'),
# PASS RESET COMPLETE # PASS RESET COMPLETE
url('^reset/done/$', url(r'^reset/done/$',
Home.as_view(), Home.as_view(),
name='password_reset_complete'), name='password_reset_complete'),
] ]