summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2014-12-29 21:25:53 +0100
committerLukas Fleischer <archlinux@cryptocrack.de>2014-12-29 21:30:25 +0100
commit3d12d3888a625523fc7fe89278a85c54fb94beec (patch)
tree22ca3ed7b10a14232568e8632dc3c6f5d16a7751
parent4fc1c2c10c9c359480561927a0b0eb0a6fab9fe1 (diff)
downloadaur-3d12d3888a625523fc7fe89278a85c54fb94beec.tar.gz
aur-3d12d3888a625523fc7fe89278a85c54fb94beec.tar.xz
Disallow specifying an SSH key during registration
Make sure that users confirm their email addresses before setting an initial SSH key. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
-rw-r--r--web/template/account_edit_form.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/web/template/account_edit_form.php b/web/template/account_edit_form.php
index 996c207b..110fbb58 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>