diff --git a/app/Http/Controllers/Auth/LoginController.php b/app/Http/Controllers/Auth/LoginController.php index 21617681ff..526c49e3d2 100644 --- a/app/Http/Controllers/Auth/LoginController.php +++ b/app/Http/Controllers/Auth/LoginController.php @@ -439,7 +439,7 @@ class LoginController extends Controller $user->saveQuietly(); $request->session()->put('2fa_authed', $user->id); - return redirect()->route('home')->with('success', 'You are logged in!'); + return redirect()->route('home')->with('success', trans('auth/general.login_success')); } return redirect()->route('two-factor')->with('error', trans('auth/message.two_factor.invalid_code')); diff --git a/resources/lang/en-US/auth/general.php b/resources/lang/en-US/auth/general.php index 37ac5634d8..52cdcc37cd 100644 --- a/resources/lang/en-US/auth/general.php +++ b/resources/lang/en-US/auth/general.php @@ -15,6 +15,6 @@ return [ 'google_login' => 'Login with Google Workspace', 'google_login_failed' => 'Google Login failed, please try again.', 'two_factor_code' => 'Please enter your two-factor authentication code.', - + 'login_success' => 'You are logged in!.', ];