We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b859327 commit 749a426Copy full SHA for 749a426
web/controller/index.go
@@ -69,7 +69,7 @@ func (a *IndexController) login(c *gin.Context) {
69
safePass := template.HTMLEscapeString(form.Password)
70
safeSecret := template.HTMLEscapeString(form.LoginSecret)
71
if user == nil {
72
- logger.Warningf("wrong username or password or secret: \"%s\" \"%s\" \"%s\"", safeUser, safePass, safeSecret)
+ logger.Warningf("wrong username: \"%s\", password: \"%s\", secret: \"%s\", IP: \"%s\"", safeUser, safePass, safeSecret, getRemoteIp(c))
73
a.tgbot.UserLoginNotify(safeUser, safePass, getRemoteIp(c), timeStr, 0)
74
pureJsonMsg(c, http.StatusOK, false, I18nWeb(c, "pages.login.toasts.wrongUsernameOrPassword"))
75
return
0 commit comments