Merge remote-tracking branch 'upstream/3.0.1.6' into 3.0.1.6-Gmail
This commit is contained in:
@@ -388,7 +388,7 @@ class FilesManager
|
||||
if ($path == '') {
|
||||
throw new \Exception(\G::LoadTranslation("ID_INVALID_VALUE_FOR", array('prf_uid')));
|
||||
}
|
||||
$sFile = end(explode(DIRECTORY_SEPARATOR,$path));
|
||||
$sFile = basename($path);
|
||||
$sPath = str_replace($sFile,'',$path);
|
||||
$sSubDirectory = substr(str_replace($sProcessUID,'',substr($sPath,(strpos($sPath, $sProcessUID)))),0,-1);
|
||||
$sMainDirectory = str_replace(substr($sPath, strpos($sPath, $sProcessUID)),'', $sPath);
|
||||
|
||||
@@ -596,8 +596,12 @@ class User
|
||||
|
||||
$rbac->initRBAC();
|
||||
|
||||
if (isset($arrayData["USR_NEW_PASS"])) {
|
||||
$arrayData["USR_PASSWORD"] = \Bootstrap::hashPassword($arrayData["USR_NEW_PASS"]);
|
||||
if (isset($arrayData['USR_PASSWORD'])) {
|
||||
$arrayData['USR_PASSWORD'] = \Bootstrap::hashPassword($arrayData['USR_PASSWORD']);
|
||||
} else {
|
||||
if (isset($arrayData['USR_NEW_PASS'])) {
|
||||
$arrayData['USR_PASSWORD'] = \Bootstrap::hashPassword($arrayData['USR_NEW_PASS']);
|
||||
}
|
||||
}
|
||||
|
||||
$arrayData["USR_UID"] = $userUid;
|
||||
|
||||
Reference in New Issue
Block a user