Merge pull request #1724 from Jennydmz/BUG-11584

BUG 11584 Inactive Users can login into ProcessMaker. SOLVED
This commit is contained in:
julceslauhub
2013-05-13 14:25:56 -07:00

View File

@@ -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;
}