From fc376e451df91c01632cf2ffff10c1ecc0f8fed9 Mon Sep 17 00:00:00 2001 From: Eser DENIZ Date: Fri, 17 Nov 2023 13:53:13 +0000 Subject: [PATCH] [5.x] Use provider names in error messages (#315) --- src/Actions/AuthenticateOAuthCallback.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Actions/AuthenticateOAuthCallback.php b/src/Actions/AuthenticateOAuthCallback.php index 53681417..ee09dfad 100644 --- a/src/Actions/AuthenticateOAuthCallback.php +++ b/src/Actions/AuthenticateOAuthCallback.php @@ -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)