mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
fix: handling of user registration HideEmail
Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
d5a1c16458
commit
2d6c09bec5
1 changed files with 3 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue