Prevent keyboard focus on "Forgot password"

This commit is contained in:
silverwind 2024-07-24 00:58:41 +02:00
parent c0b5a843ba
commit c24cd927b8
No known key found for this signature in database
GPG Key ID: 2E62B41C93869443

View File

@ -19,7 +19,7 @@
{{if or (not .DisablePassword) .LinkAccountMode}}
<div class="required field {{if and (.Err_Password) (or (not .LinkAccountMode) (and .LinkAccountMode .LinkAccountModeSignIn))}}error{{end}} form-field-content-aside-label">
<label for="password">{{ctx.Locale.Tr "password"}}</label>
<a href="{{AppSubUrl}}/user/forgot_password">{{ctx.Locale.Tr "auth.forgot_password"}}</a>
<a href="{{AppSubUrl}}/user/forgot_password" tabindex="-1">{{ctx.Locale.Tr "auth.forgot_password"}}</a>
<input id="password" name="password" type="password" value="{{.password}}" autocomplete="current-password" required>
</div>
{{end}}