diff --git a/app/Providers/AuthServiceProvider.php b/app/Providers/AuthServiceProvider.php index 0c240d16..a3230fa0 100644 --- a/app/Providers/AuthServiceProvider.php +++ b/app/Providers/AuthServiceProvider.php @@ -26,7 +26,7 @@ class AuthServiceProvider extends ServiceProvider { $this->registerPolicies(); - if(\config_cache('pixelfed.oauth_enabled')) { + if(config('pixelfed.oauth_enabled')) { Passport::routes(null, ['middleware' => ['twofactor', \Fruitcake\Cors\HandleCors::class]]); Passport::tokensExpireIn(now()->addDays(config('instance.oauth.token_expiration', 15))); Passport::refreshTokensExpireIn(now()->addDays(config('instance.oauth.refresh_expiration', 30))); diff --git a/resources/views/admin/settings/home.blade.php b/resources/views/admin/settings/home.blade.php index 1779f40b..82a37e92 100644 --- a/resources/views/admin/settings/home.blade.php +++ b/resources/views/admin/settings/home.blade.php @@ -39,10 +39,10 @@ -