git.cweiske.de
/
grauphel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Show client name in oauth authorization (works for tomdroid only)
[grauphel.git]
/
controller
/
oauthcontroller.php
diff --git
a/controller/oauthcontroller.php
b/controller/oauthcontroller.php
index 8672927ecb584f78740c34dce3497febe1eff85d..6ab17d224f64dfeae05b5ff11ce2e23a28910b0c 100644
(file)
--- a/
controller/oauthcontroller.php
+++ b/
controller/oauthcontroller.php
@@
-118,10
+118,16
@@
class OauthController extends Controller
return $token;
}
return $token;
}
+ $client = 'unknown';
+ if (isset($_GET['client'])) {
+ $client = $_GET['client'];
+ }
+
$res = new TemplateResponse('grauphel', 'oauthAuthorize');
$res->setParams(
array(
'oauth_token' => $token->tokenKey,
$res = new TemplateResponse('grauphel', 'oauthAuthorize');
$res->setParams(
array(
'oauth_token' => $token->tokenKey,
+ 'client' => $client,
'formaction' => $this->deps->urlGen->linkToRoute(
'grauphel.oauth.confirm'
),
'formaction' => $this->deps->urlGen->linkToRoute(
'grauphel.oauth.confirm'
),