From 35be0ae011c70e766417b1e640a8dac03644a3b6 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Mon, 29 Sep 2014 21:42:55 +0200 Subject: Show client name in oauth authorization (works for tomdroid only) --- controller/oauthcontroller.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'controller/oauthcontroller.php') diff --git a/controller/oauthcontroller.php b/controller/oauthcontroller.php index 8672927..6ab17d2 100644 --- a/controller/oauthcontroller.php +++ b/controller/oauthcontroller.php @@ -118,10 +118,16 @@ class OauthController extends Controller return $token; } + $client = 'unknown'; + if (isset($_GET['client'])) { + $client = $_GET['client']; + } + $res = new TemplateResponse('grauphel', 'oauthAuthorize'); $res->setParams( array( 'oauth_token' => $token->tokenKey, + 'client' => $client, 'formaction' => $this->deps->urlGen->linkToRoute( 'grauphel.oauth.confirm' ), -- cgit v1.2.3