Add functionality in rbac for enable or disable compatibility with soap login
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
require_once(__DIR__ . '/../../../bootstrap/autoload.php');
|
||||
try {
|
||||
//Set variables
|
||||
$cronName = pathinfo($_SERVER['SCRIPT_FILENAME'], PATHINFO_FILENAME);
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
require_once(__DIR__ . '/../../../bootstrap/autoload.php');
|
||||
register_shutdown_function(
|
||||
create_function(
|
||||
'',
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?php
|
||||
ini_set("soap.wsdl_cache_enabled", 0); //disabling WSDL cache
|
||||
|
||||
use ProcessMaker\Util\ParseSoapVariableName;
|
||||
|
||||
define( 'WEB_SERVICE_VERSION', '2.0' );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user