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:57 -0400 |
commit | 8a0c14c3e44b3ccf79db2dec4e836a6ca6367f75 (patch) | |
tree | d5bb371849372244e7d40b0237b2e1d1e74ec8c7 | |
parent | 7a10e3ebe736e38e74acd16c393e6fbd49a0a1e6 (diff) | |
download | pfsense-8a0c14c3e44b3ccf79db2dec4e836a6ca6367f75.zip pfsense-8a0c14c3e44b3ccf79db2dec4e836a6ca6367f75.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> |