fix csrf issue

bracket-feature
Raz 9 months ago
parent c80246d032
commit 9b08773012
  1. 2
      padelclub_backend/settings.py
  2. 6
      tournaments/templates/tournaments/acc_active_email.html

@ -151,5 +151,7 @@ AUTHENTICATION_BACKENDS = [
'django.contrib.auth.backends.ModelBackend',
]
CSRF_COOKIE_SECURE = True # if using HTTPS
from .settings_local import *
from .settings_app import *

@ -4,11 +4,7 @@
Bienvenue {{ user.username }} !
<br><br>Veuillez cliquer sur le lien suivant pour activer votre compte :<br>
<a href="padelclub://{{ domain }}{% url 'activate' uidb64=uid token=token %}">Activer mon compte</a>
<br><br>Si le lien ne marche pas, cliquez <a href="http://{{ domain }}{% url 'activate' uidb64=uid token=token %}?next=index">ici</a>.
<br>Une fois votre compte activé, connectez-vous dans l'app.
<a href="https://{{ domain }}{% url 'activate' uidb64=uid token=token %}">Activer mon compte</a>
<br><br>À tout de suite sur <a href="https://padelclub.app">Padel Club</a> !
{% endautoescape %}

Loading…
Cancel
Save