fix to pass register pytest

This commit is contained in:
corentin-feys 2022-03-13 23:04:14 +01:00
parent 3e9cb2acb1
commit 74a1697cda

View file

@ -56,7 +56,6 @@ class Register(View):
localname = form.data["localname"].strip()
email = form.data["email"]
password = form.data["password"]
answer = form.data["answer"]
# make sure the email isn't blocked as spam
email_domain = email.split("@")[-1]
@ -69,7 +68,6 @@ class Register(View):
username,
email,
password,
answer=answer,
localname=localname,
local=True,
deactivation_reason="pending" if settings.require_confirm_email else None,