link grauphel 0.6.2 download
[grauphel.git] / controller / oauthcontroller.php
index bc66de4b6c390781f026707ee03998e25d15c789..dfb02c57a7a7661bfe5e46db89956954f8441195 100644 (file)
@@ -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