Commit 821c011b authored by Linus Lewandowski's avatar Linus Lewandowski

Fix random "Link expired."

parent d39ca2fc
Pipeline #13922103 passed with stages
in 6 minutes and 38 seconds
......@@ -79,7 +79,7 @@ class FinishRegistrationByEmail(TemplateView):
raise Http404
if ei.exists:
if request.user == ei.user or request.token["user_id"] ==
if ei.user in request.user.accounts or request.token["user_id"] ==
messages.success(request, _("Your email addres has been confirmed before."))
return redirect(settings.HOME_URL)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment