diff --git a/src/openforms/submissions/views.py b/src/openforms/submissions/views.py index 36f4a61a6a..84b9c7f8bb 100644 --- a/src/openforms/submissions/views.py +++ b/src/openforms/submissions/views.py @@ -144,8 +144,9 @@ def get_redirect_url( # TODO: remove code duplication - # No login required, skip authentication - if not submission.form.login_required: + # No login required. If the user did NOT log in when initially starting the submission (that they are now + # resuming) skip authentication. + if not submission.form.login_required and not submission.is_authenticated: submission = self.custom_submission_modifications(submission) add_submmission_to_session(submission, self.request.session) submission_resumed.send( @@ -153,7 +154,7 @@ def get_redirect_url( ) return self.get_form_resume_url(submission) - # Login IS required. Check if the user has already logged in. + # Check if the user has already logged in. # This is done by checking if the authentication details are in the session and # if they match those in the saved submission. if FORM_AUTH_SESSION_KEY in self.request.session: