fix: handling of user registration HideEmail

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2022-02-05 04:28:50 -08:00
parent d5a1c16458
commit 2d6c09bec5
No known key found for this signature in database
GPG key ID: F7E46DED420788F3

View file

@ -276,6 +276,9 @@ async def account_register_post(request: Request,
args["K"] = args.get("K", str()).replace(" ", "")
K = args.get("K")
# Force "H" into a boolean.
args["H"] = H = (args.get("H", str()) == "on")
context = make_account_form_context(context, request, None, args)
ok, errors = process_account_form(request, request.user, args)
if not ok: