From 2d6c09bec536dc40aa47ac834d1ac191242889e4 Mon Sep 17 00:00:00 2001 From: Kevin Morris Date: Sat, 5 Feb 2022 04:28:50 -0800 Subject: [PATCH] fix: handling of user registration HideEmail Signed-off-by: Kevin Morris --- aurweb/routers/accounts.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/aurweb/routers/accounts.py b/aurweb/routers/accounts.py index 7cd25c49..d1b9d428 100644 --- a/aurweb/routers/accounts.py +++ b/aurweb/routers/accounts.py @@ -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: