Update oauth api, allow multiple redirect_uris. Fixes #2106

This commit is contained in:
Daniel Supernault 2020-04-11 20:14:50 -06:00
parent 0cd59e1d98
commit 0540a28ad1
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 3 additions and 1 deletions

View File

@ -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,