瀏覽代碼

Update AuthServiceProvider

Daniel Supernault 4 年之前
父節點
當前提交
868cea96ca
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Providers/AuthServiceProvider.php

+ 1 - 1
app/Providers/AuthServiceProvider.php

@@ -26,7 +26,7 @@ class AuthServiceProvider extends ServiceProvider
     {
         $this->registerPolicies();
 
-        if(config_cache('pixelfed.oauth_enabled')) {
+        if(\config_cache('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)));