[aur-dev] [PATCH 2/3] Fix the registration form

Lukas Fleischer archlinux at cryptocrack.de
Tue Jul 29 08:42:32 EDT 2014


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 at gmail.com>
Signed-off-by: Lukas Fleischer <archlinux at cryptocrack.de>
---
 web/html/account.php | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/web/html/account.php b/web/html/account.php
index d289950..f5ca304 100644
--- a/web/html/account.php
+++ b/web/html/account.php
@@ -111,10 +111,10 @@ if (isset($_COOKIE["AURSID"])) {
 	#
 	if ($action == "AccountInfo") {
 		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_account_form("","new", "NewAccount",
+		process_account_form("new", "NewAccount",
 				in_request("U"), 1, 0, in_request("E"),
 				'', '', in_request("R"), in_request("L"),
 				in_request("I"), in_request("K"));
@@ -123,7 +123,7 @@ if (isset($_COOKIE["AURSID"])) {
 		# display the account request form
 		#
 		print __("Use this form to create an account.");
-		display_account_form("", "NewAccount", "", "", "", "", "", "", "", $LANG);
+		display_account_form("NewAccount", "", "", "", "", "", "", "", $LANG);
 	}
 }
 
-- 
2.0.3


More information about the aur-dev mailing list