Fix the registration form

Pass the right parameters to display_account_form() and
process_account_form() when showing/processing the registration form.
Fixes a regression introduced in 03c6304 (Rework permission handling,
2014-07-15).

Reported-by: Karthik K <hashken.distro@gmail.com>
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
Lukas Fleischer 2014-07-29 14:28:29 +02:00
parent 97b7e077f1
commit 441498d896

View file

@ -111,10 +111,10 @@ if (isset($_COOKIE["AURSID"])) {
# #
if ($action == "AccountInfo") { if ($action == "AccountInfo") {
print __("You must log in to view user information."); print __("You must log in to view user information.");
} elseif ($action == "NewAccount") { } elseif ($action == "NewAccount") {
# process the form input for creating a new account # process the form input for creating a new account
# #
process_account_form("","new", "NewAccount", process_account_form("new", "NewAccount",
in_request("U"), 1, 0, in_request("E"), in_request("U"), 1, 0, in_request("E"),
'', '', in_request("R"), in_request("L"), '', '', in_request("R"), in_request("L"),
in_request("I"), in_request("K")); in_request("I"), in_request("K"));
@ -123,7 +123,7 @@ if (isset($_COOKIE["AURSID"])) {
# display the account request form # display the account request form
# #
print __("Use this form to create an account."); print __("Use this form to create an account.");
display_account_form("", "NewAccount", "", "", "", "", "", "", "", $LANG); display_account_form("NewAccount", "", "", "", "", "", "", "", $LANG);
} }
} }