mirror of https://github.com/pixelfed/pixelfed.git
Update oauth api, allow multiple redirect_uris. Fixes #2106
This commit is contained in:
parent
0cd59e1d98
commit
0540a28ad1
|
@ -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 New Issue