$res->setParams(
array(
'oauth_token' => $token->tokenKey,
- 'client' => $clientTitle,
+ 'clientTitle' => $clientTitle,
+ 'clientAgent' => $clientAgent,
'formaction' => $this->deps->urlGen->linkToRoute(
'grauphel.oauth.confirm'
- ) . '?client=' . urlencode($clientAgent),
+ ),
)
);
return $res;
}
$clientAgent = '';
- if (isset($_GET['client'])) {
- $clientAgent = $_GET['client'];
+ if (isset($_POST['client'])) {
+ $clientAgent = $_POST['client'];
}
//the user is logged in and authorized