From 9d687f1069dfa6014947af85a80dbb5f8f22b20d Mon Sep 17 00:00:00 2001 From: 0ko <0ko@noreply.codeberg.org> Date: Tue, 29 Oct 2024 05:31:49 +0000 Subject: [PATCH] feat(ui): link back to one-time code page from scratch code page (#5712) Preview: https://codeberg.org/attachments/b60c5d7c-103b-4227-9b0d-3d765dba2431 Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/5712 Reviewed-by: Gusted --- options/locale/locale_en-US.ini | 1 + templates/user/auth/twofa_scratch.tmpl | 1 + 2 files changed, 2 insertions(+) diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index 013a684a7c..289b8aa17f 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -442,6 +442,7 @@ verify = Verify unauthorized_credentials = Credentials are incorrect or have expired. Retry your command or see %s for more information scratch_code = Scratch code use_scratch_code = Use a scratch code +use_onetime_code = Use a one-time code twofa_scratch_used = You have used your scratch code. You have been redirected to the two-factor settings page so you may remove your device enrollment or generate a new scratch code. twofa_passcode_incorrect = Your passcode is incorrect. If you misplaced your device, use your scratch code to sign in. twofa_scratch_token_incorrect = Your scratch code is incorrect. diff --git a/templates/user/auth/twofa_scratch.tmpl b/templates/user/auth/twofa_scratch.tmpl index 23ad77f2a9..7d7e3c1b54 100644 --- a/templates/user/auth/twofa_scratch.tmpl +++ b/templates/user/auth/twofa_scratch.tmpl @@ -16,6 +16,7 @@
+ {{ctx.Locale.Tr "auth.use_onetime_code"}}