django-refunds/authentication/urls.py
2017-04-10 12:12:40 +02:00

37 lines
994 B
Python

from authentication.views import password_change_done
from django.conf.urls import url
from django.contrib.auth.views import login, logout, password_change
urlpatterns = [
url(
r'^login/$',
login,
{
'template_name': 'authentication/auth_form.html',
'extra_context': {
'title': 'Connexion',
'action': 'Connexion'
}
},
name='auth_login'
),
url(
r'^logout/$',
logout,
{'next_page': 'home'},
name='auth_logout'
),
url(
r'^password/change/$',
password_change,
{
'template_name': 'authentication/auth_form.html',
'extra_context': {
'title': 'Modifier le mot de passe',
'action': 'Modifier le mot de passe'
}
},
name='password_change'
),
url(r'^password/change/done/$', password_change_done, name='password_change_done'),
]