Merge pull request #1724 from Jennydmz/BUG-11584
BUG 11584 Inactive Users can login into ProcessMaker. SOLVED
This commit is contained in:
@@ -313,6 +313,7 @@ class RBAC
|
|||||||
*/
|
*/
|
||||||
public function VerifyLogin ($strUser, $strPass)
|
public function VerifyLogin ($strUser, $strPass)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (strlen( $strPass ) == 0) {
|
if (strlen( $strPass ) == 0) {
|
||||||
return - 2;
|
return - 2;
|
||||||
}
|
}
|
||||||
@@ -336,7 +337,6 @@ class RBAC
|
|||||||
}
|
}
|
||||||
//Hook for RBAC plugins
|
//Hook for RBAC plugins
|
||||||
if ($sAuthType != "mysql" && $sAuthType != "") {
|
if ($sAuthType != "mysql" && $sAuthType != "") {
|
||||||
|
|
||||||
$res = $this->VerifyWithOtherAuthenticationSource( $sAuthType, $this->userObj->fields, $strPass );
|
$res = $this->VerifyWithOtherAuthenticationSource( $sAuthType, $this->userObj->fields, $strPass );
|
||||||
return $res;
|
return $res;
|
||||||
} else {
|
} else {
|
||||||
@@ -487,7 +487,7 @@ class RBAC
|
|||||||
*/
|
*/
|
||||||
public function changeUserStatus ($sUserUID = '', $sStatus = 'ACTIVE')
|
public function changeUserStatus ($sUserUID = '', $sStatus = 'ACTIVE')
|
||||||
{
|
{
|
||||||
if ($sStatus == 'ACTIVE') {
|
if ($sStatus === 'ACTIVE') {
|
||||||
$sStatus = 1;
|
$sStatus = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user