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