loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <gusted@noreply.codeberg.org>

0ko 9d687f10 457be483

+2
+1
options/locale/locale_en-US.ini
··· 442 442 unauthorized_credentials = Credentials are incorrect or have expired. Retry your command or see %s for more information 443 443 scratch_code = Scratch code 444 444 use_scratch_code = Use a scratch code 445 + use_onetime_code = Use a one-time code 445 446 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. 446 447 twofa_passcode_incorrect = Your passcode is incorrect. If you misplaced your device, use your scratch code to sign in. 447 448 twofa_scratch_token_incorrect = Your scratch code is incorrect.
+1
templates/user/auth/twofa_scratch.tmpl
··· 16 16 17 17 <div class="inline field"> 18 18 <button class="ui primary button">{{ctx.Locale.Tr "auth.verify"}}</button> 19 + <a href="{{AppSubUrl}}/user/two_factor">{{ctx.Locale.Tr "auth.use_onetime_code"}}</a> 19 20 </div> 20 21 </div> 21 22 </form>