from django.urls import path
from . import views
from django.views.generic.base import RedirectView

urlpatterns = [
	path('prihlasit/', views.LoginView.as_view(), name='login'),
	path('login/', RedirectView.as_view(pattern_name='login', permanent=True, query_string=True)),
	path('odhlasit/', views.LogoutView.as_view(), name='logout'),
	path('logout/', RedirectView.as_view(pattern_name='logout', permanent=True, query_string=True)),
	path('reset-hesla/', views.PasswordResetView.as_view(), name='reset_password'),
	path('zmena-hesla/', views.PasswordChangeView.as_view(), name='change_password'),
	path('reset-hesla/2/', views.PasswordResetDoneView.as_view(), name='reset_password_done'),
	path('reset-hesla/potvrzeni/<uidb64>/<token>/', views.PasswordResetConfirmView.as_view(), name='reset_password_confirm'),
	path('reset-hesla/hotovo/', views.PasswordResetCompleteView.as_view(), name='reset_password_complete'),
]