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