diff options
author | jim-p <jimp@pfsense.org> | 2013-07-16 13:27:24 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2013-07-16 13:27:24 -0400 |
commit | 1c8faa89b9aab2d7ab7aef9837d9c9e436ada9c7 (patch) | |
tree | 03b066824c0e1290f8ba4d5fc428be3e2510c512 | |
parent | 241eed1ab71fec5e49224afccbc59fe9a0b03b29 (diff) | |
download | pfsense-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.php | 4 |
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> |