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

This commit is contained in:
Benno authored and techknowlogick committed 2019-11-24 15:17:53 -05:00
1 parent d0edb607a3
commit e8241bf55e
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -788,6 +788,7 @@ func LinkAccountPostSignIn(ctx *context.Context, signInForm auth.SignInForm) {
u, err := models.UserSignIn(signInForm.UserName, signInForm.Password)
if err != nil {
if models.IsErrUserNotExist(err) {
ctx.Data["user_exists"] = true
ctx.RenderWithErr(ctx.Tr("form.username_password_incorrect"), tplLinkAccount, &signInForm)
} else {
ctx.ServerError("UserLinkAccount", err)