Updates on Oauth register method and New designer open action on process list
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
<?php
|
||||
|
||||
$G_MAIN_MENU = 'processmaker';
|
||||
$G_ID_MENU_SELECTED = 'DESIGNER';
|
||||
$G_PUBLISH = new Publisher();
|
||||
|
||||
$G_PUBLISH->AddContent( 'view', 'designer/main' );
|
||||
|
||||
G::RenderPage('publish', 'minimal');
|
||||
@@ -18,8 +18,6 @@ switch ($_SERVER['REQUEST_METHOD']) {
|
||||
\Api\OAuth2\Server::setPmClientId('x-pm-local-client');
|
||||
|
||||
$oauthServer = new \Api\OAuth2\Server();
|
||||
$oauthServer->setConfig('enforce_state', false);
|
||||
|
||||
$userid = $_SESSION['USER_LOGGED'];
|
||||
$authorize = isset($_POST['authorize']) ? (bool) $_POST['authorize'] : false;
|
||||
|
||||
|
||||
@@ -20,6 +20,7 @@ switch ($_SERVER['REQUEST_METHOD']) {
|
||||
$client->setClientDescription($data['description']);
|
||||
$client->setClientWebsite($data['web_site']);
|
||||
$client->setRedirectUri($data['callback_url']);
|
||||
$client->setUsrUid($_SESSION['USER_LOGGED']);
|
||||
|
||||
$client->save();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user