PMCORE-1976 Use of ampersand in password will produce wrong credentials error upon login.
This commit is contained in:
@@ -2,17 +2,6 @@
|
||||
|
||||
use ProcessMaker\BusinessModel\User as BmUser;
|
||||
|
||||
// Sanitizing the values sent in the global variables
|
||||
$filter = new InputFilter();
|
||||
$_POST = $filter->xssFilterHard($_POST);
|
||||
|
||||
if (isset($_SESSION['USER_LOGGED'])) {
|
||||
$_SESSION['USER_LOGGED'] = $filter->xssFilterHard($_SESSION['USER_LOGGED']);
|
||||
}
|
||||
if (isset($_SESSION['USR_USERNAME'])) {
|
||||
$_SESSION['USR_USERNAME'] = $filter->xssFilterHard($_SESSION['USR_USERNAME']);
|
||||
}
|
||||
|
||||
// Initializing variables
|
||||
$action = !empty($_POST['action']) ? $_POST['action'] : '';
|
||||
$result = new StdClass();
|
||||
@@ -149,7 +138,7 @@ try {
|
||||
if (!empty($form["USR_EMAIL"])) {
|
||||
$form["USR_EMAIL"] = strtolower($form["USR_EMAIL"]);
|
||||
}
|
||||
|
||||
|
||||
switch ($_POST['action']) {
|
||||
case 'saveUser':
|
||||
if (!$user->checkPermission($_SESSION['USER_LOGGED'], 'PM_USERS')) {
|
||||
|
||||
Reference in New Issue
Block a user