django-refunds/authentication/urls.py

38 lines
994 B
Python
Raw Normal View History

2016-06-04 12:44:21 +02:00
from authentication.views import password_change_done
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
2016-06-03 19:33:51 +02:00
urlpatterns = [
2016-06-04 12:44:21 +02:00
url(
r'^login/$',
2016-06-03 19:33:51 +02:00
login,
2016-06-04 12:44:21 +02:00
{
'template_name': 'authentication/auth_form.html',
'extra_context': {
2016-10-27 09:35:44 +02:00
'title': 'Connexion',
2017-04-10 12:12:40 +02:00
'action': 'Connexion'
2016-06-04 12:44:21 +02:00
}
},
2016-06-03 19:33:51 +02:00
name='auth_login'
2016-06-04 12:44:21 +02:00
),
url(
r'^logout/$',
2016-06-03 19:33:51 +02:00
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:44:21 +02:00
),
url(
r'^password/change/$',
password_change,
{
'template_name': 'authentication/auth_form.html',
'extra_context': {
2016-10-27 09:35:44 +02:00
'title': 'Modifier le mot de passe',
2017-04-10 12:12:40 +02:00
'action': 'Modifier le mot de passe'
2016-06-04 12:44:21 +02:00
}
},
name='password_change'
),
2016-06-04 12:40:57 +02:00
url(r'^password/change/done/$', password_change_done, name='password_change_done'),
2016-06-03 19:33:51 +02:00
]