diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2014-09-29 21:42:55 +0200 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2014-09-29 21:42:55 +0200 |
| commit | 35be0ae011c70e766417b1e640a8dac03644a3b6 (patch) | |
| tree | a1a19eaa48fc1f1b60bee373ffb4c54dfb173c31 /controller/oauthcontroller.php | |
| parent | 01aae57048be789c8102106833f734b382aafc2e (diff) | |
| download | grauphel-35be0ae011c70e766417b1e640a8dac03644a3b6.tar.gz grauphel-35be0ae011c70e766417b1e640a8dac03644a3b6.zip | |
Show client name in oauth authorization (works for tomdroid only)
Diffstat (limited to 'controller/oauthcontroller.php')
| -rw-r--r-- | controller/oauthcontroller.php | 6 |
1 files changed, 6 insertions, 0 deletions
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' ), |
