Updates on Oauth register method and New designer open action on process list
This commit is contained in:
@@ -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