2016-06-03 19:33:51 +02:00
|
|
|
from django.conf.urls import url
|
2016-06-04 12:40:57 +02:00
|
|
|
from django.contrib.auth.views import login, logout, password_change
|
|
|
|
from authentication.views import password_change_done
|
2016-06-03 19:33:51 +02:00
|
|
|
|
|
|
|
urlpatterns = [
|
|
|
|
url(r'^login/$',
|
|
|
|
login,
|
|
|
|
{'template_name': 'authentication/login.html'},
|
|
|
|
name='auth_login'
|
|
|
|
),
|
|
|
|
url(r'^logout/$',
|
|
|
|
logout,
|
2016-06-03 20:02:26 +02:00
|
|
|
{'next_page': 'home'},
|
2016-06-03 19:33:51 +02:00
|
|
|
name='auth_logout'
|
|
|
|
),
|
2016-06-04 12:40:57 +02:00
|
|
|
url(r'^password/change/$', password_change, {'template_name': 'authentication/change_password.html'}, name='password_change'),
|
|
|
|
url(r'^password/change/done/$', password_change_done, name='password_change_done'),
|
2016-06-03 19:33:51 +02:00
|
|
|
]
|