Commit 7180a072 authored by Samuel GAIST's avatar Samuel GAIST

[ui][registration][views] Disable access for logged in users

parent 31165feb
......@@ -35,12 +35,14 @@ from django.shortcuts import render
from django.urls import reverse
from django.views.decorators.csrf import csrf_protect
from ...utils.decorators import login_forbidden
from .forms import RegistrationFormTermsOfService
from .forms import RegistrationFormTermsOfServiceSupervisor
from .forms import RegistrationSupervisorForm
from .models import RegistrationProfile
@login_forbidden
def activate(
request,
activation_key,
......@@ -102,6 +104,7 @@ def activate(
return render(request, template_name, context)
@login_forbidden
@csrf_protect
def register(
request,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment