Commit 7e1a1a10 authored by Franco Fichtner's avatar Franco Fichtner

src: sweep'n'style

parent fef8fb56
......@@ -39,5 +39,4 @@ class IndexController extends \OPNsense\Base\IndexController
$this->view->title = "Proxy Server";
$this->view->pick('OPNsense/Proxy/index');
}
}
......@@ -248,22 +248,22 @@ if ($_POST['save']) {
if (!$input_errors) {
$userent = array();
if (isset($id) && $a_user[$id]) {
$userent = $a_user[$id];
/* the user name was modified */
if ($_POST['usernamefld'] <> $_POST['oldusername']) {
$_SERVER['REMOTE_USER'] = $_POST['usernamefld'];
local_user_del($userent);
}
}
/* the user name was modified */
if ($_POST['usernamefld'] != $_POST['oldusername']) {
$_SERVER['REMOTE_USER'] = $_POST['usernamefld'];
local_user_del($userent);
}
}
/* the user password was mofified */
if ($_POST['passwordfld1']) {
local_user_set_password($userent, $_POST['passwordfld1']);
/* the user password was modified */
if ($_POST['passwordfld1']) {
local_user_set_password($userent, $_POST['passwordfld1']);
}
isset($_POST['utype']) ? $userent['scope'] = $_POST['utype'] : $userent['scope'] = "system";
$userent['name'] = $_POST['usernamefld'];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment