Skip to content

Commit

Permalink
chore: pint format
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentauger committed Dec 2, 2024
1 parent 807c790 commit 56bb044
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/Http/Controllers/Orcid/FullFlowController.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,14 @@ public function callback(Request $request): RedirectResponse
if (! $user) {
Log::error('Invalid user for ORCID callback');
$url = $frontendUrl.'#/auth/orcid-callback?status=invalid_user';

return redirect($url);
}

if ($validated['error'] ?? false) {
Log::error('Error in ORCID callback');
Log::debug($validated['error_description']);

return redirect($frontendUrl.'#/auth/orcid-callback?status=error&error_type='.$validated['error'].'&error_description='.$validated['error_description']);
}

Expand Down

0 comments on commit 56bb044

Please sign in to comment.