Added 2fa translation string

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-06-20 15:20:52 +01:00
parent 077a6949e2
commit 69cf697aa3
2 changed files with 2 additions and 1 deletions

View file

@ -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.');

View file

@ -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.',
];