aboutsummaryrefslogtreecommitdiffstats
path: root/templates/user/auth/reset_passwd.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/user/auth/reset_passwd.tmpl')
-rw-r--r--templates/user/auth/reset_passwd.tmpl24
1 files changed, 12 insertions, 12 deletions
diff --git a/templates/user/auth/reset_passwd.tmpl b/templates/user/auth/reset_passwd.tmpl
index f8303feef3..37a23b3e55 100644
--- a/templates/user/auth/reset_passwd.tmpl
+++ b/templates/user/auth/reset_passwd.tmpl
@@ -34,18 +34,18 @@
{{ctx.Locale.Tr "twofa"}}
</h4>
<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>
- <input id="token" name="token" type="text" autocomplete="off" autofocus required>
- </div>
- <input type="hidden" name="scratch_code" value="true">
- {{else}}
- <div class="required field {{if .Err_Passcode}}error{{end}}">
- <label for="passcode">{{ctx.Locale.Tr "passcode"}}</label>
- <input id="passcode" name="passcode" type="number" autocomplete="off" autofocus required>
- </div>
- {{end}}
+ {{if .scratch_code}}
+ <div class="required inline field {{if .Err_Token}}error{{end}}">
+ <label for="token">{{ctx.Locale.Tr "auth.scratch_code"}}</label>
+ <input id="token" name="token" type="text" autocomplete="off" autofocus required>
+ </div>
+ <input type="hidden" name="scratch_code" value="true">
+ {{else}}
+ <div class="required field {{if .Err_Passcode}}error{{end}}">
+ <label for="passcode">{{ctx.Locale.Tr "passcode"}}</label>
+ <input id="passcode" name="passcode" type="number" autocomplete="off" autofocus required>
+ </div>
+ {{end}}
{{end}}
<div class="divider"></div>
<div class="inline field">