mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 07:23:13 +00:00
Merge
This commit is contained in:
@@ -271,7 +271,7 @@ return call_user_func(function()
|
|||||||
$route = "/applications/dev/new";
|
$route = "/applications/dev/new";
|
||||||
$app->get($route, function() use ($app)
|
$app->get($route, function() use ($app)
|
||||||
{
|
{
|
||||||
$var = array("violations" => null);
|
$var = array("violations" => null, 'form' => null);
|
||||||
|
|
||||||
return $app['response']('api/auth/application_dev_new.twig', $var);
|
return $app['response']('api/auth/application_dev_new.twig', $var);
|
||||||
});
|
});
|
||||||
|
@@ -406,11 +406,22 @@ class API_OAuth2_Adapter extends OAuth2
|
|||||||
'response_type' => $request->get('response_type', false)
|
'response_type' => $request->get('response_type', false)
|
||||||
, 'client_id' => $request->get('client_id', false)
|
, 'client_id' => $request->get('client_id', false)
|
||||||
, 'redirect_uri' => $request->get('redirect_uri', false)
|
, 'redirect_uri' => $request->get('redirect_uri', false)
|
||||||
, 'scope' => $request->get('scope', false)
|
|
||||||
, 'state' => $request->get('state', false)
|
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
$scope = $request->get('scope', false);
|
||||||
|
$state = $request->get('state', false);
|
||||||
|
|
||||||
|
if($state)
|
||||||
|
{
|
||||||
|
$datas["state"] = $state;
|
||||||
|
}
|
||||||
|
|
||||||
|
if($scope)
|
||||||
|
{
|
||||||
|
$datas["scope"] = $scope;
|
||||||
|
}
|
||||||
|
|
||||||
$filters = array(
|
$filters = array(
|
||||||
"client_id" => array(
|
"client_id" => array(
|
||||||
"filter" => FILTER_VALIDATE_REGEXP
|
"filter" => FILTER_VALIDATE_REGEXP
|
||||||
|
@@ -192,7 +192,6 @@ class connection
|
|||||||
self::$_PDO_instance[$name] = null;
|
self::$_PDO_instance[$name] = null;
|
||||||
unset(self::$_PDO_instance[$name]);
|
unset(self::$_PDO_instance[$name]);
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -6,7 +6,7 @@
|
|||||||
<li>
|
<li>
|
||||||
<div>
|
<div>
|
||||||
<span class='app-row'><strong><a class="link" id="app_dev_new" href="/api/oauthv2/applications/dev/{{app.get_id}}/show">{{app.get_name}}</a></strong></span>
|
<span class='app-row'><strong><a class="link" id="app_dev_new" href="/api/oauthv2/applications/dev/{{app.get_id}}/show">{{app.get_name}}</a></strong></span>
|
||||||
<span class='app-row'>{{app.get_desciption }}</span>
|
<span class='app-row'>{{app.get_description }}</span>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
Reference in New Issue
Block a user