From: Christian Weiske Date: Tue, 14 Oct 2014 16:23:36 +0000 (+0200) Subject: Add computer name input field on oauth authorization page X-Git-Tag: v0.3.0~3 X-Git-Url: https://git.cweiske.de/grauphel.git/commitdiff_plain/2cb2fae10d986db73bb0ad517df8c5334cab713c?ds=sidebyside Add computer name input field on oauth authorization page --- 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 diff --git a/templates/oauthAuthorize.php b/templates/oauthAuthorize.php index cab58ab..46a1918 100644 --- a/templates/oauthAuthorize.php +++ b/templates/oauthAuthorize.php @@ -4,9 +4,16 @@

Shall application - + get full access to the notes?

+

+ + (e.g. home pc) +