diff options
Diffstat (limited to 'controller/oauthcontroller.php')
| -rw-r--r-- | controller/oauthcontroller.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/controller/oauthcontroller.php b/controller/oauthcontroller.php index bc66de4..dfb02c5 100644 --- a/controller/oauthcontroller.php +++ b/controller/oauthcontroller.php @@ -132,10 +132,11 @@ class OauthController extends Controller $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; @@ -178,8 +179,8 @@ class OauthController extends Controller } $clientAgent = ''; - if (isset($_GET['client'])) { - $clientAgent = $_GET['client']; + if (isset($_POST['client'])) { + $clientAgent = $_POST['client']; } //the user is logged in and authorized |
