Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/Jurager/passport
Browse files Browse the repository at this point in the history
  • Loading branch information
Jurager authored and Jurager committed Dec 6, 2024
2 parents f0bea73 + 514cc6c commit db963e0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Http/Controllers/ServerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,12 @@ public function attach(Request $request): Response|JsonResponse|RedirectResponse
$return_url = $request->input('return_url');

// Compare checksums
if (! $this->server->verifyAttachChecksum($broker_id, $token, $checksum)) {

// Failed checksum comprehension
try {
$this->server->verifyAttachChecksum($broker_id, $token, $checksum);
} catch (\Exception $e) {
return response(trans('passport::errors.invalid_checksum'), 400);
}

// Generate new session
$sid = $this->server->generateSessionId($broker_id, $token);

Expand Down

0 comments on commit db963e0

Please sign in to comment.