Skip to content

Commit

Permalink
[5.x] Use provider names in error messages (#315)
Browse files Browse the repository at this point in the history
  • Loading branch information
SRWieZ authored Nov 17, 2023
1 parent 5f36e56 commit fc376e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Actions/AuthenticateOAuthCallback.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ protected function alreadyAuthenticated(Authenticatable $user, ?ConnectedAccount
}

$error = $account->user_id !== $user->id
? __('This :Provider sign in account is already associated with another user. Please log in with that user or connect a different :Provider account.', ['provider' => Providers::buttonLabel($provider)])
: __('This :Provider sign in account is already associated with your user.', ['provider' => Providers::buttonLabel($provider)]);
? __('This :Provider sign in account is already associated with another user. Please log in with that user or connect a different :Provider account.', ['provider' => Providers::name($provider)])
: __('This :Provider sign in account is already associated with your user.', ['provider' => Providers::name($provider)]);

return class_exists(Jetstream::class)
? redirect()->to($route)->dangerBanner($error)
Expand Down

0 comments on commit fc376e4

Please sign in to comment.