diff options
author | jim-p <jimp@pfsense.org> | 2010-05-27 17:08:06 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2010-05-28 16:13:27 -0400 |
commit | ddd1fb7f19f6496cb772db67e722720972ce8d5b (patch) | |
tree | 74eb3c7e416475d54d793e6ff50281bca27ad633 /usr/local | |
parent | 1b02631155b3b8aa4e01b929518179d03aa96299 (diff) | |
download | pfsense-ddd1fb7f19f6496cb772db67e722720972ce8d5b.zip pfsense-ddd1fb7f19f6496cb772db67e722720972ce8d5b.tar.gz |
Add IPsec PSK field to User Manager. No backend code to use this value yet.
Diffstat (limited to 'usr/local')
-rw-r--r-- | usr/local/www/system_usermanager.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/usr/local/www/system_usermanager.php b/usr/local/www/system_usermanager.php index 1224f6a..c3da004 100644 --- a/usr/local/www/system_usermanager.php +++ b/usr/local/www/system_usermanager.php @@ -158,6 +158,7 @@ if (isAllowedPage("system_usermanager")) { $pconfig['uid'] = $a_user[$id]['uid']; $pconfig['authorizedkeys'] = base64_decode($a_user[$id]['authorizedkeys']); $pconfig['priv'] = $a_user[$id]['priv']; + $pconfig['ipsecpsk'] = $a_user[$id]['ipsecpsk']; $pconfig['disabled'] = isset($a_user[$id]['disabled']); } } @@ -270,6 +271,7 @@ if (isAllowedPage("system_usermanager")) { $userent['fullname'] = $_POST['fullname']; $userent['expires'] = $_POST['expires']; $userent['authorizedkeys'] = base64_encode($_POST['authorizedkeys']); + $userent['ipsecpsk'] = $_POST['ipsecpsk']; if($_POST['disabled']) $userent['disabled'] = true; @@ -728,6 +730,12 @@ function sshkeyClicked(obj) { <?=gettext("Paste an authorized keys file here.");?> </td> </tr> + <tr id="ipsecpskrow" name="ipsecpskrow"> + <td width="22%" valign="top" class="vncell"><?=gettext("IPsec Pre-Shared Key");?></td> + <td width="78%" class="vtable"> + <input name="ipsecpsk" type="text" class="formfld unknown" id="ipsecpsk" size="65" value="<?=htmlspecialchars($pconfig['ipsecpsk']);?>"> + </td> + </tr> <tr> <td width="22%" valign="top"> </td> <td width="78%"> |