mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
If an account has SSH keys, show them, don't show the checkbox to add keys. Fixes #2729
This commit is contained in:
parent
7a10e3ebe7
commit
8a0c14c3e4
@ -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>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user