Daniel Supernault 2 年之前
父节点
当前提交
add5eaf094
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Providers/AuthServiceProvider.php

+ 1 - 1
app/Providers/AuthServiceProvider.php

@@ -24,7 +24,7 @@ class AuthServiceProvider extends ServiceProvider
      */
      */
     public function boot()
     public function boot()
     {
     {
-        if(config('app.env') === 'production' && config_cache('pixelfed.oauth_enabled') == true) {
+        if(config('app.env') === 'production' && config('pixelfed.oauth_enabled') == true) {
             Passport::tokensExpireIn(now()->addDays(config('instance.oauth.token_expiration', 356)));
             Passport::tokensExpireIn(now()->addDays(config('instance.oauth.token_expiration', 356)));
             Passport::refreshTokensExpireIn(now()->addDays(config('instance.oauth.refresh_expiration', 400)));
             Passport::refreshTokensExpireIn(now()->addDays(config('instance.oauth.refresh_expiration', 400)));
             Passport::enableImplicitGrant();
             Passport::enableImplicitGrant();