Merge remote branch 'upstream/master'
This commit is contained in:
@@ -266,14 +266,16 @@ class RBAC
|
|||||||
*/
|
*/
|
||||||
public function VerifyWithOtherAuthenticationSource ($sAuthType, $aUserFields, $strPass)
|
public function VerifyWithOtherAuthenticationSource ($sAuthType, $aUserFields, $strPass)
|
||||||
{
|
{
|
||||||
//check if the user is active
|
if ($sAuthType == '' || $sAuthType == 'MYSQL') {
|
||||||
if ($aUserFields['USR_STATUS'] != 1) {
|
//check if the user is active
|
||||||
return - 3; //inactive user
|
if ($aUserFields['USR_STATUS'] != 1) {
|
||||||
}
|
return - 3; //inactive user
|
||||||
|
}
|
||||||
|
|
||||||
//check if the user's due date is valid
|
//check if the user's due date is valid
|
||||||
if ($aUserFields['USR_DUE_DATE'] < date( 'Y-m-d' )) {
|
if ($aUserFields['USR_DUE_DATE'] < date( 'Y-m-d' )) {
|
||||||
return - 4; //due date
|
return - 4; //due date
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($this->aRbacPlugins as $sClassName) {
|
foreach ($this->aRbacPlugins as $sClassName) {
|
||||||
|
|||||||
Reference in New Issue
Block a user