From ae1428f41613237e2657ac1d461df361ff8bc87b Mon Sep 17 00:00:00 2001 From: Kumi Date: Sat, 16 Nov 2024 21:39:52 +0100 Subject: [PATCH] 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. --- src/synapse_registration/registration/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/synapse_registration/registration/views.py b/src/synapse_registration/registration/views.py index e885426..56ba0e7 100644 --- a/src/synapse_registration/registration/views.py +++ b/src/synapse_registration/registration/views.py @@ -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)