[aur-dev] [PATCH 3/3] Show the SSH key field on the registration page

Lukas Fleischer lfleischer at archlinux.org
Sun May 31 17:32:28 UTC 2015


Now that we have a short explanation on how we use the SSH public key,
we can show that field on the registration page.

Signed-off-by: Lukas Fleischer <lfleischer at archlinux.org>
---
 web/html/account.php               | 3 ++-
 web/template/account_edit_form.php | 2 --
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/web/html/account.php b/web/html/account.php
index a4c630e..cb33c4e 100644
--- a/web/html/account.php
+++ b/web/html/account.php
@@ -124,7 +124,8 @@ if (isset($_COOKIE["AURSID"])) {
 		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"));
+				in_request("I"), in_request("K"),
+				in_request("PK"));
 
 	} else {
 		# display the account request form
diff --git a/web/template/account_edit_form.php b/web/template/account_edit_form.php
index 415c086..f988714 100644
--- a/web/template/account_edit_form.php
+++ b/web/template/account_edit_form.php
@@ -114,7 +114,6 @@
 		</p>
 	</fieldset>
 
-	<?php if ($A == "UpdateAccount"): ?>
 	<fieldset>
 		<legend><?= __("The following information is only required if you want to submit packages to the Arch User Repository.") ?></legend>
 		<p>
@@ -122,7 +121,6 @@
 			<textarea name="PK" id="id_ssh" rows="5" cols="30"><?= htmlspecialchars($PK) ?></textarea>
 		</p>
 	</fieldset>
-	<?php endif; ?>
 
 	<fieldset>
 		<p>
-- 
2.4.1


More information about the aur-dev mailing list