PM-3755 Consume the oauth/token endpoint specifying an invalid workspace,
This commit is contained in:
committed by
Victor Saisa Lopez
parent
50f1c742dc
commit
4bfbc750f8
@@ -378,7 +378,6 @@ class WebApplication
|
||||
}
|
||||
|
||||
Services\OAuth2\Server::setWorkspace(SYS_SYS);
|
||||
Services\OAuth2\Server::loadPostEnvironment();
|
||||
$this->rest->addAPIClass('\ProcessMaker\\Services\\OAuth2\\Server', 'oauth2');
|
||||
|
||||
return $uri;
|
||||
@@ -495,6 +494,8 @@ class WebApplication
|
||||
define("PATH_TEMPORAL", PATH_C . "dynEditor/");
|
||||
define("PATH_DB", PATH_DATA . "sites" . PATH_SEP);
|
||||
|
||||
\Bootstrap::setLanguage();
|
||||
|
||||
\Bootstrap::LoadTranslationObject((defined("SYS_LANG"))? SYS_LANG : "en");
|
||||
|
||||
if (empty($workspace)) {
|
||||
|
||||
Reference in New Issue
Block a user