1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Remove unnecessary ".Link" usages (#29929)

Follow #29909
This commit is contained in:
wxiaoguang
2024-03-20 14:58:10 +08:00
committed by GitHub
parent 4c476fa41d
commit 91699a9bb1
6 changed files with 15 additions and 15 deletions

View File

@@ -51,7 +51,7 @@
<div class="inline field">
<button class="ui primary button">{{ctx.Locale.Tr "auth.reset_password_helper"}}</button>
{{if and .has_two_factor (not .scratch_code)}}
<a href="{{.Link}}?code={{.Code}}&amp;scratch_code=true">{{ctx.Locale.Tr "auth.use_scratch_code"}}</a>
<a href="?code={{.Code}}&scratch_code=true">{{ctx.Locale.Tr "auth.use_scratch_code"}}</a>
{{end}}
</div>
{{else}}