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)
|
||||
{
|
||||
|
||||
if (strlen( $strPass ) == 0) {
|
||||
return - 2;
|
||||
}
|
||||
@@ -336,7 +337,6 @@ class RBAC
|
||||
}
|
||||
//Hook for RBAC plugins
|
||||
if ($sAuthType != "mysql" && $sAuthType != "") {
|
||||
|
||||
$res = $this->VerifyWithOtherAuthenticationSource( $sAuthType, $this->userObj->fields, $strPass );
|
||||
return $res;
|
||||
} else {
|
||||
@@ -486,8 +486,8 @@ class RBAC
|
||||
* @return void
|
||||
*/
|
||||
public function changeUserStatus ($sUserUID = '', $sStatus = 'ACTIVE')
|
||||
{
|
||||
if ($sStatus == 'ACTIVE') {
|
||||
{
|
||||
if ($sStatus === 'ACTIVE') {
|
||||
$sStatus = 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user