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 ...@@ -39,5 +39,4 @@ class IndexController extends \OPNsense\Base\IndexController
$this->view->title = "Proxy Server"; $this->view->title = "Proxy Server";
$this->view->pick('OPNsense/Proxy/index'); $this->view->pick('OPNsense/Proxy/index');
} }
} }
...@@ -248,18 +248,18 @@ if ($_POST['save']) { ...@@ -248,18 +248,18 @@ if ($_POST['save']) {
if (!$input_errors) { if (!$input_errors) {
$userent = array(); $userent = array();
if (isset($id) && $a_user[$id]) { if (isset($id) && $a_user[$id]) {
$userent = $a_user[$id]; $userent = $a_user[$id];
/* the user name was modified */ /* the user name was modified */
if ($_POST['usernamefld'] <> $_POST['oldusername']) { if ($_POST['usernamefld'] != $_POST['oldusername']) {
$_SERVER['REMOTE_USER'] = $_POST['usernamefld']; $_SERVER['REMOTE_USER'] = $_POST['usernamefld'];
local_user_del($userent); local_user_del($userent);
} }
} }
/* the user password was mofified */ /* the user password was modified */
if ($_POST['passwordfld1']) { if ($_POST['passwordfld1']) {
local_user_set_password($userent, $_POST['passwordfld1']); local_user_set_password($userent, $_POST['passwordfld1']);
} }
......
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