update #9066 Always show Password field on link account sign in page (#9147)

This commit is contained in:
Benno 2019-11-25 04:17:53 +08:00 committed by techknowlogick
parent d0edb607a3
commit e8241bf55e
2 changed files with 2 additions and 1 deletions

View file

@ -15,7 +15,7 @@
<label for="user_name">{{.i18n.Tr "home.uname_holder"}}</label>
<input id="user_name" name="user_name" value="{{.user_name}}" autofocus required>
</div>
{{if not .DisablePassword}}
{{if or (not .DisablePassword) .LinkAccountMode}}
<div class="required inline field {{if and (.Err_Password) (or (not .LinkAccountMode) (and .LinkAccountMode .LinkAccountModeSignIn))}}error{{end}}">
<label for="password">{{.i18n.Tr "password"}}</label>
<input id="password" name="password" type="password" value="{{.password}}" autocomplete="off" required>