Add functionality in rbac for enable or disable compatibility with soap login

This commit is contained in:
Marco A. Nina Mena
2017-08-10 14:30:37 -04:00
parent 2cce81048b
commit 4683f5b59d
6 changed files with 66 additions and 11 deletions

View File

@@ -65,6 +65,8 @@ class wsBase
global $RBAC;
try {
//To enable compatibility with soap login, method Enable.
$RBAC->enableLoginSoapWithHash();
$uid = $RBAC->VerifyLogin( $userid, $password );
switch ($uid) {
@@ -113,14 +115,13 @@ class wsBase
$session->Save();
//save the session in DataBase
return $wsResponse;
} catch (Exception $e) {
$wsResponse = unserialize( $e->getMessage() );
return $wsResponse;
}
//To enable compatibility with soap login, method disable.
$RBAC->disableLoginSoapWithHash();
return $wsResponse;
}
/**