diff --git a/tournaments/templates/registration/login.html b/tournaments/templates/registration/login.html index 66e056a..9a360a0 100644 --- a/tournaments/templates/registration/login.html +++ b/tournaments/templates/registration/login.html @@ -26,7 +26,7 @@ {% endfor %} {% endif %} -
+ {% csrf_token %} diff --git a/tournaments/templates/tournaments/navigation_base.html b/tournaments/templates/tournaments/navigation_base.html index 1c3337c..a92af4d 100644 --- a/tournaments/templates/tournaments/navigation_base.html +++ b/tournaments/templates/tournaments/navigation_base.html @@ -6,7 +6,7 @@ Mes tournois Mon compte {% else %} - Se connecter + Se connecter {% endif %} Ajouter vos tournois diff --git a/tournaments/urls.py b/tournaments/urls.py index 7821b39..f544567 100644 --- a/tournaments/urls.py +++ b/tournaments/urls.py @@ -54,7 +54,7 @@ urlpatterns = [ path('terms-of-use/', views.terms_of_use, name='terms-of-use'), path('utils/xls-to-csv/', views.xls_to_csv, name='xls-to-csv'), path('mail-test/', views.simple_form_view, name='mail-test'), - path('login/', CustomLoginView.as_view(), name='login'), + path('login/', CustomLoginView.as_view(), name='custom-login'), path('password_change/', auth_views.PasswordChangeView.as_view( success_url='/profile/', # Redirect back to profile after success