Fixes for things I noticed I will probably forget to fix otherwise.

This commit is contained in:
flash 2024-07-20 03:27:29 +00:00
parent 89a767ec25
commit c8432fa15e
2 changed files with 2 additions and 2 deletions

View file

@ -89,7 +89,7 @@ class HanyuuContext {
});
$routingCtx->register(new OAuth2\OAuth2Routes(
$this->scopeTo('oauth2'),
$this->config->scopeTo('oauth2'),
$this->oauth2Ctx,
$this->appsCtx,
$this->templating,

View file

@ -72,7 +72,7 @@ class OAuth2AuthoriseData {
throw new RuntimeException('Insufficient data to do authorisation request lookup.');
$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)
$stmt->addParameter(++$args, $value);
$stmt->execute();