Fixes for things I noticed I will probably forget to fix otherwise.
This commit is contained in:
parent
89a767ec25
commit
c8432fa15e
2 changed files with 2 additions and 2 deletions
|
@ -89,7 +89,7 @@ class HanyuuContext {
|
||||||
});
|
});
|
||||||
|
|
||||||
$routingCtx->register(new OAuth2\OAuth2Routes(
|
$routingCtx->register(new OAuth2\OAuth2Routes(
|
||||||
$this->scopeTo('oauth2'),
|
$this->config->scopeTo('oauth2'),
|
||||||
$this->oauth2Ctx,
|
$this->oauth2Ctx,
|
||||||
$this->appsCtx,
|
$this->appsCtx,
|
||||||
$this->templating,
|
$this->templating,
|
||||||
|
|
|
@ -72,7 +72,7 @@ class OAuth2AuthoriseData {
|
||||||
throw new RuntimeException('Insufficient data to do authorisation request lookup.');
|
throw new RuntimeException('Insufficient data to do authorisation request lookup.');
|
||||||
|
|
||||||
$args = 0;
|
$args = 0;
|
||||||
$stmt = $this->cache->get('SELECT auth_id, app_id, user_id, uri_id, auth_state, auth_challenge_code, auth_challenge_method, auth_scope, auth_code, auth_approval, UNIX_TIMESTAMP(auth_created) FROM hau_oauth2_authorise WHERE ' . implode(' AND ', $selectors));
|
$stmt = $this->cache->get('SELECT auth_id, app_id, user_id, uri_id, auth_state, auth_challenge_code, auth_challenge_method, auth_scope, auth_code, auth_approval, UNIX_TIMESTAMP(auth_created), UNIX_TIMESTAMP(auth_expires) FROM hau_oauth2_authorise WHERE ' . implode(' AND ', $selectors));
|
||||||
foreach($values as $value)
|
foreach($values as $value)
|
||||||
$stmt->addParameter(++$args, $value);
|
$stmt->addParameter(++$args, $value);
|
||||||
$stmt->execute();
|
$stmt->execute();
|
||||||
|
|
Reference in a new issue