We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 233bbcf commit 174255eCopy full SHA for 174255e
routers/user/auth.go
@@ -154,8 +154,10 @@ func SignInPost(ctx *context.Context, form auth.SignInForm) {
154
if err != nil {
155
if models.IsErrUserNotExist(err) {
156
ctx.RenderWithErr(ctx.Tr("form.username_password_incorrect"), tplSignIn, &form)
157
+ log.Info("Failed authentication attempt for %s from %s", form.UserName, ctx.RemoteAddr())
158
} else if models.IsErrEmailAlreadyUsed(err) {
159
ctx.RenderWithErr(ctx.Tr("form.email_been_used"), tplSignIn, &form)
160
161
} else {
162
ctx.Handle(500, "UserSignIn", err)
163
}
0 commit comments