Merged in bugfix/HOR-3548 (pull request #5872)
HOR-3548 Approved-by: Julio Cesar Laura Avendaño <contact@julio-laura.com>
This commit is contained in:
committed by
Julio Cesar Laura Avendaño
commit
702eb8ac9d
@@ -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,12 @@ class wsBase
|
||||
global $RBAC;
|
||||
|
||||
try {
|
||||
//To enable compatibility with hash login, method Enable.
|
||||
//It's necessary to enable the hash start session because there are use cases in both,
|
||||
//the web entry and in the case planner, where the password is still used in the hash
|
||||
//format so that is possible to start a session. Thiw way we will mantain the
|
||||
//compatibility with this type of loggin.
|
||||
$RBAC->enableLoginWithHash();
|
||||
$uid = $RBAC->VerifyLogin( $userid, $password );
|
||||
|
||||
switch ($uid) {
|
||||
@@ -113,14 +119,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 hash login, method disable.
|
||||
$RBAC->disableLoginWithHash();
|
||||
return $wsResponse;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?php
|
||||
ini_set("soap.wsdl_cache_enabled", 0); //disabling WSDL cache
|
||||
use ProcessMaker\Util\ParseSoapVariableName;
|
||||
|
||||
ini_set("soap.wsdl_cache_enabled", 0); //disabling WSDL cache
|
||||
|
||||
define( 'WEB_SERVICE_VERSION', '2.0' );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user