diff --git a/padelclub_backend/settings.py b/padelclub_backend/settings.py index 5106803..2c5c17e 100644 --- a/padelclub_backend/settings.py +++ b/padelclub_backend/settings.py @@ -142,15 +142,6 @@ STATIC_ROOT = os.path.join(BASE_DIR, 'static/') DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' -CSRF_TRUSTED_ORIGINS = [ - 'http://127.0.0.1:8000', - 'https://padelclub.app', - 'http://padelclub.app' -] # Ajoutez vos domaines de confiance - -from .settings_local import * -from .settings_app import * - # settings.py LOGIN_REDIRECT_URL = '/' # Redirect to the homepage after login LOGOUT_REDIRECT_URL = '/' # Redirect to the homepage after logout @@ -160,8 +151,5 @@ AUTHENTICATION_BACKENDS = [ 'django.contrib.auth.backends.ModelBackend', ] -CSRF_COOKIE_SECURE = True # if using HTTPS -CSRF_COOKIE_HTTPONLY = False # needed for AJAX requests -CSRF_USE_SESSIONS = False # store CSRF token in cookie instead of session -CSRF_COOKIE_SAMESITE = 'Lax' # or 'Strict' for more security -LOGIN_URL = 'login' +from .settings_local import * +from .settings_app import * diff --git a/tournaments/templates/registration/signup_success.html b/tournaments/templates/registration/signup_success.html new file mode 100644 index 0000000..0e40cc7 --- /dev/null +++ b/tournaments/templates/registration/signup_success.html @@ -0,0 +1,22 @@ +{% extends 'tournaments/base.html' %} + +{% block head_title %} Création de compte {% endblock %} +{% block first_title %} Padel Club {% endblock %} +{% block second_title %} Création de compte {% endblock %} + +{% block content %} +{% load static %} +{% load tz %} + +