diff --git a/lacommunaute/forum_member/views.py b/lacommunaute/forum_member/views.py index 49b5c4013..20b50a0fc 100644 --- a/lacommunaute/forum_member/views.py +++ b/lacommunaute/forum_member/views.py @@ -89,7 +89,6 @@ def form_valid(self, form): try: user = User.objects.get(email=email) - return render(self.request, "registration/login_link_sent.html", {"email": email}) except User.DoesNotExist: user = User.objects.create_user( email=email, @@ -98,7 +97,6 @@ def form_valid(self, form): last_name=last_name, identity_provider=IdentityProvider.MAGIC_LINK, ) - - ForumProfile.objects.create(user=user) + ForumProfile.objects.create(user=user) return render(self.request, "registration/login_link_sent.html", {"email": email})