mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-28 23:42:28 +00:00
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>
This commit is contained in:
parent
457be48362
commit
9d687f1069
|
@ -442,6 +442,7 @@ verify = Verify
|
||||||
unauthorized_credentials = Credentials are incorrect or have expired. Retry your command or see %s for more information
|
unauthorized_credentials = Credentials are incorrect or have expired. Retry your command or see %s for more information
|
||||||
scratch_code = Scratch code
|
scratch_code = Scratch code
|
||||||
use_scratch_code = Use a 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_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_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.
|
twofa_scratch_token_incorrect = Your scratch code is incorrect.
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
|
|
||||||
<div class="inline field">
|
<div class="inline field">
|
||||||
<button class="ui primary button">{{ctx.Locale.Tr "auth.verify"}}</button>
|
<button class="ui primary button">{{ctx.Locale.Tr "auth.verify"}}</button>
|
||||||
|
<a href="{{AppSubUrl}}/user/two_factor">{{ctx.Locale.Tr "auth.use_onetime_code"}}</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
Loading…
Reference in a new issue