fix: Fix registration status verification logic

Updates registration completion check to validate
that the status is 'STATUS_STARTED' instead of
'STATUS_REQUESTED'. This corrects the flow for
properly handling completed registrations.

This change ensures users with started registrations
are processed correctly.
This commit is contained in:
Kumi 2024-11-16 21:39:52 +01:00
parent 2d3e039414
commit ae1428f416
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -184,7 +184,7 @@ class CompleteRegistrationView(FormView):
UserRegistration, id=self.request.session.get("registration")
)
if (
self.registration.status != UserRegistration.STATUS_REQUESTED
self.registration.status != UserRegistration.STATUS_STARTED
or not self.registration.email_verified
):
return render(request, "registration/registration_forbidden.html", status=403)