Update config, make oauth opt-in

pull/1136/head
Daniel Supernault 6 years ago
parent a665b90b60
commit bedb42baca
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

@ -25,6 +25,7 @@ class AuthServiceProvider extends ServiceProvider
{
$this->registerPolicies();
if(config('pixelfed.oauth_enabled')) {
Passport::routes();
Passport::tokensExpireIn(now()->addDays(15));
Passport::refreshTokensExpireIn(now()->addDays(30));
@ -40,4 +41,5 @@ class AuthServiceProvider extends ServiceProvider
'user:write' => 'This scope lets an app "Change your profile information"',
]);
}
}
}

@ -276,4 +276,6 @@ return [
]
]
],
'oauth_enabled' => env('OAUTH_ENABLED', false),
];

Loading…
Cancel
Save