diff --git a/src/registrar/forms/user_profile.py b/src/registrar/forms/user_profile.py index 557e34e0d..3dd8cbdce 100644 --- a/src/registrar/forms/user_profile.py +++ b/src/registrar/forms/user_profile.py @@ -47,7 +47,7 @@ class UserProfileForm(forms.ModelForm): self.fields["middle_name"].label = "Middle name (optional)" self.fields["last_name"].label = "Last name / family name" self.fields["title"].label = "Title or role in your organization" - self.fields["email"].label = "Organizational email" + self.fields["email"].label = "Organization email" # Set custom error messages self.fields["first_name"].error_messages = {"required": "Enter your first name / given name."} diff --git a/src/registrar/registrar_middleware.py b/src/registrar/registrar_middleware.py index 5e1abeb9b..79e3b7a11 100644 --- a/src/registrar/registrar_middleware.py +++ b/src/registrar/registrar_middleware.py @@ -68,11 +68,10 @@ class CheckUserProfileMiddleware: return None if request.user.is_authenticated: - if request.user.verification_type == User.VerificationTypeChoices.REGULAR: - if hasattr(request.user, "finished_setup") and not request.user.finished_setup: + if hasattr(request.user, "finished_setup") and not request.user.finished_setup: + if request.user.verification_type == User.VerificationTypeChoices.REGULAR: return self._handle_regular_user_setup_not_finished(request) - else: - if hasattr(request.user, "finished_setup") and not request.user.finished_setup: + else: return self._handle_other_user_setup_not_finished(request) # Continue processing the view diff --git a/src/registrar/templates/profile.html b/src/registrar/templates/profile.html index 16b7e2688..dd371b930 100644 --- a/src/registrar/templates/profile.html +++ b/src/registrar/templates/profile.html @@ -49,7 +49,7 @@ Edit your User Profile | data-open-modal >Open confirmation modal