summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2013-07-16 13:27:24 -0400
committerjim-p <jimp@pfsense.org>2013-07-16 13:27:24 -0400
commit1c8faa89b9aab2d7ab7aef9837d9c9e436ada9c7 (patch)
tree03b066824c0e1290f8ba4d5fc428be3e2510c512
parent241eed1ab71fec5e49224afccbc59fe9a0b03b29 (diff)
downloadpfsense-1c8faa89b9aab2d7ab7aef9837d9c9e436ada9c7.zip
pfsense-1c8faa89b9aab2d7ab7aef9837d9c9e436ada9c7.tar.gz
If an account has SSH keys, show them, don't show the checkbox to add keys. Fixes #2729
-rw-r--r--usr/local/www/system_usermanager.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/system_usermanager.php b/usr/local/www/system_usermanager.php
index 786e2f8..4d486a2 100644
--- a/usr/local/www/system_usermanager.php
+++ b/usr/local/www/system_usermanager.php
@@ -746,13 +746,13 @@ function sshkeyClicked(obj) {
<?php endif; endif; ?>
<?php endif; ?>
- <tr id="sshkeychck">
+ <tr id="sshkeychck" <?php if(!empty($pconfig['authorizedkeys'])) echo 'style="display:none"'; ?>>
<td width="22%" valign="top" class="vncell"><?=gettext("Authorized keys");?></td>
<td width="78%" class="vtable">
<input type="checkbox" onclick="javascript:sshkeyClicked(this)" /> <?=gettext("Click to paste an authorized key."); ?>
</td>
</tr>
- <tr id="sshkey" style="display:none">
+ <tr id="sshkey" <?php if(empty($pconfig['authorizedkeys'])) echo 'style="display:none"'; ?>>
<td width="22%" valign="top" class="vncell"><?=gettext("Authorized keys");?></td>
<td width="78%" class="vtable">
<textarea name="authorizedkeys" cols="65" rows="7" id="authorizedkeys" class="formfld_cert" wrap="off"><?=htmlspecialchars($pconfig['authorizedkeys']);?></textarea>
OpenPOWER on IntegriCloud