[aur-dev] [PATCH] Disallow specifying an SSH key during registration

Lukas Fleischer archlinux at cryptocrack.de
Mon Dec 29 20:30:59 UTC 2014


Make sure that users confirm their email addresses before setting an
initial SSH key.

Signed-off-by: Lukas Fleischer <archlinux at cryptocrack.de>
---
 web/template/account_edit_form.php | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/web/template/account_edit_form.php b/web/template/account_edit_form.php
index 996c207..110fbb5 100644
--- a/web/template/account_edit_form.php
+++ b/web/template/account_edit_form.php
@@ -97,10 +97,12 @@
 			<input type="text" size="30" maxlength="50" name="K" id="id_pgp" value="<?= html_format_pgp_fingerprint($K) ?>" />
 		</p>
 
+		<?php if ($A == "UpdateAccount"): ?>
 		<p>
 			<label for="id_ssh"><?= __("SSH Public Key") ?>:</label>
 			<textarea name="PK" id="id_ssh" rows="5" cols="30"><?= htmlspecialchars($PK) ?></textarea>
 		</p>
+		<?php endif; ?>
 
 		<p>
 			<label for="id_language"><?= __("Language") ?>:</label>
-- 
2.2.1


More information about the aur-dev mailing list