mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-29 09:43:16 +00:00
Update oauth api, allow multiple redirect_uris. Fixes #2106
This commit is contained in:
parent
0cd59e1d98
commit
0540a28ad1
1 changed files with 3 additions and 1 deletions
|
@ -70,11 +70,13 @@ class ApiV1Controller extends Controller
|
|||
'website' => 'nullable'
|
||||
]);
|
||||
|
||||
$uris = implode(',', explode('\n', $request->redirect_uris));
|
||||
|
||||
$client = Passport::client()->forceFill([
|
||||
'user_id' => null,
|
||||
'name' => e($request->client_name),
|
||||
'secret' => Str::random(40),
|
||||
'redirect' => $request->redirect_uris,
|
||||
'redirect' => $uris,
|
||||
'personal_access_client' => false,
|
||||
'password_client' => false,
|
||||
'revoked' => false,
|
||||
|
|
Loading…
Reference in a new issue