Skip to content

Commit

Permalink
quality
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentporte committed Nov 7, 2024
1 parent 11ca5e7 commit 44d9df8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lacommunaute/forum_member/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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})

0 comments on commit 44d9df8

Please sign in to comment.