diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2024-02-23 02:05:47 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-22 18:05:47 +0000 |
commit | c9d0e63c202827756c637d9ca7bbde685c1984b7 (patch) | |
tree | 0063802c261722b7225e9802b7818593d9b195e2 /templates/user/auth/reset_passwd.tmpl | |
parent | 5ed17d9895bf678374ef5227ca37870c1c170802 (diff) | |
download | gitea-c9d0e63c202827756c637d9ca7bbde685c1984b7.tar.gz gitea-c9d0e63c202827756c637d9ca7bbde685c1984b7.zip |
Remove unnecessary "Str2html" modifier from templates (#29319)
Follow #29165
Diffstat (limited to 'templates/user/auth/reset_passwd.tmpl')
-rw-r--r-- | templates/user/auth/reset_passwd.tmpl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/user/auth/reset_passwd.tmpl b/templates/user/auth/reset_passwd.tmpl index 2f470df441..9fee30f554 100644 --- a/templates/user/auth/reset_passwd.tmpl +++ b/templates/user/auth/reset_passwd.tmpl @@ -34,7 +34,7 @@ <h4 class="ui dividing header"> {{ctx.Locale.Tr "twofa"}} </h4> - <div class="ui warning visible message">{{ctx.Locale.Tr "settings.twofa_is_enrolled" | Str2html}}</div> + <div class="ui warning visible message">{{ctx.Locale.Tr "settings.twofa_is_enrolled"}}</div> {{if .scratch_code}} <div class="required inline field {{if .Err_Token}}error{{end}}"> <label for="token">{{ctx.Locale.Tr "auth.scratch_code"}}</label> @@ -53,11 +53,11 @@ <label></label> <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}}&scratch_code=true">{{ctx.Locale.Tr "auth.use_scratch_code" | Str2html}}</a> + <a href="{{.Link}}?code={{.Code}}&scratch_code=true">{{ctx.Locale.Tr "auth.use_scratch_code"}}</a> {{end}} </div> {{else}} - <p class="center">{{ctx.Locale.Tr "auth.invalid_code_forgot_password" (printf "%s/user/forgot_password" AppSubUrl) | Str2html}}</p> + <p class="center">{{ctx.Locale.Tr "auth.invalid_code_forgot_password" (printf "%s/user/forgot_password" AppSubUrl)}}</p> {{end}} </div> </form> |