diff --git a/app/Http/Controllers/Auth/LoginController.php b/app/Http/Controllers/Auth/LoginController.php index 526c49e3d2..9cc74bc7df 100644 --- a/app/Http/Controllers/Auth/LoginController.php +++ b/app/Http/Controllers/Auth/LoginController.php @@ -428,7 +428,7 @@ class LoginController extends Controller } if (! $request->has('two_factor_secret')) { // TODO this seems almost the same as above? - return redirect()->route('two-factor')->with('error', 'Two-factor code is required.'); + return redirect()->route('two-factor')->with('error', trans('auth/message.two_factor.code_required')); } $user = Auth::user(); @@ -439,7 +439,7 @@ class LoginController extends Controller $user->saveQuietly(); $request->session()->put('2fa_authed', $user->id); - return redirect()->route('home')->with('success', trans('auth/general.login_success')); + return redirect()->route('home')->with('success', trans('auth/message.signin.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 52cdcc37cd..f54e7e2ba0 100644 --- a/resources/lang/en-US/auth/general.php +++ b/resources/lang/en-US/auth/general.php @@ -15,6 +15,5 @@ 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!.', ];