Commit 77dbb574 authored by AdSchellevis's avatar AdSchellevis

password issue when creating a new user (fix for https://github.com/opnsense/core/issues/143)

parent ca3cbda8
......@@ -257,12 +257,13 @@ if ($_POST['save']) {
local_user_del($userent);
}
/* the user password was mofified */
if ($_POST['passwordfld1']) {
local_user_set_password($userent, $_POST['passwordfld1']);
}
}
/* the user password was mofified */
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