BUG 15705 'logged out while editing a process under the DESIGNER menu'

This commit is contained in:
Freddy Daniel Rojas Valda
2014-09-18 11:25:45 -04:00
parent 84dd1ce780
commit cd6b0d9179
2 changed files with 16 additions and 10 deletions

View File

@@ -49,7 +49,7 @@ class Designer extends Controller
$request = new \OAuth2\Request(array(), $request, array(), array(), array(), $server, null, $headers);
$oauthServer = new \ProcessMaker\Services\OAuth2\Server();
$response = $oauthServer->getServer()->handleTokenRequest($request);
$response = $oauthServer->postToken($request, true);
$clientToken = $response->getParameters();
$clientToken["client_id"] = $client['CLIENT_ID'];
$clientToken["client_secret"] = $client['CLIENT_SECRET'];