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:
Marco Antonio Nina Mena
2017-08-10 22:24:29 +00:00
committed by Julio Cesar Laura Avendaño
6 changed files with 72 additions and 13 deletions

View File

@@ -1,4 +1,5 @@
<?php
require_once(__DIR__ . '/../../../bootstrap/autoload.php');
try {
//Set variables
$cronName = pathinfo($_SERVER['SCRIPT_FILENAME'], PATHINFO_FILENAME);

View File

@@ -1,4 +1,5 @@
<?php
require_once(__DIR__ . '/../../../bootstrap/autoload.php');
register_shutdown_function(
create_function(
'',

View File

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

View File

@@ -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' );