Skip to content

A free open source IT asset/license management system

Added 2fa translation string

snipe69cf697aa3ed
diff --git a/app/Http/Middleware/CheckForTwoFactor.php b/app/Http/Middleware/CheckForTwoFactor.php
index d6e9faa0eb..15e84217e9 100644
--- a/app/Http/Middleware/CheckForTwoFactor.php
+++ b/app/Http/Middleware/CheckForTwoFactor.php
@@ -49,7 +49,7 @@ class CheckForTwoFactor
// Otherwise make sure they're enrolled and show them the 2FA code screen
if ((Auth::user()->two_factor_secret != '') && (Auth::user()->two_factor_enrolled == '1')) {
- return redirect()->route('two-factor')->with('info', 'Please enter your two-factor authentication code.');
+ return redirect()->route('two-factor')->with('info', trans('auth/general.two_factor_code'));
}
return redirect()->route('two-factor-enroll')->with('success', 'Please enroll a device in two-factor authentication.');
diff --git a/resources/lang/en-US/auth/general.php b/resources/lang/en-US/auth/general.php
index e6a6eed0fc..37ac5634d8 100644
--- a/resources/lang/en-US/auth/general.php
+++ b/resources/lang/en-US/auth/general.php
@@ -14,6 +14,7 @@ return [
'username_help_bottom' => 'Your username and email address <em>may</em> be the same, but may not be, depending on your configuration. If you cannot remember your username, contact your administrator. <br><br><strong>Usernames without an associated email address will not be emailed a password reset link.</strong> ',
'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.',
];