forked from mirror/pixelfed
Update config, make oauth opt-in
This commit is contained in:
parent
a665b90b60
commit
bedb42baca
2 changed files with 17 additions and 13 deletions
|
@ -25,6 +25,7 @@ class AuthServiceProvider extends ServiceProvider
|
||||||
{
|
{
|
||||||
$this->registerPolicies();
|
$this->registerPolicies();
|
||||||
|
|
||||||
|
if(config('pixelfed.oauth_enabled')) {
|
||||||
Passport::routes();
|
Passport::routes();
|
||||||
Passport::tokensExpireIn(now()->addDays(15));
|
Passport::tokensExpireIn(now()->addDays(15));
|
||||||
Passport::refreshTokensExpireIn(now()->addDays(30));
|
Passport::refreshTokensExpireIn(now()->addDays(30));
|
||||||
|
@ -41,3 +42,4 @@ class AuthServiceProvider extends ServiceProvider
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -276,4 +276,6 @@ return [
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
|
|
||||||
|
'oauth_enabled' => env('OAUTH_ENABLED', false),
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue