|
|
|
@ -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) |
|
|
|
|