mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-09-11 20:50:06 +00:00
Update index.go
This commit is contained in:
parent
eb5ed5c0dd
commit
d6a5429237
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ func (a *IndexController) login(c *gin.Context) {
|
||||||
safePass := template.HTMLEscapeString(form.Password)
|
safePass := template.HTMLEscapeString(form.Password)
|
||||||
safeSecret := template.HTMLEscapeString(form.LoginSecret)
|
safeSecret := template.HTMLEscapeString(form.LoginSecret)
|
||||||
if user == nil {
|
if user == nil {
|
||||||
logger.Warningf("wrong username or password or secret: \"%s\" \"%s\" \"%s\"", safeUser, safePass, safeSecret)
|
logger.Warningf("wrong username or password or secret: \"%s\" \"%s\" \"%s\", IP: %s", safeUser, safePass, safeSecret, getRemoteIp(c))
|
||||||
a.tgbot.UserLoginNotify(safeUser, safePass, getRemoteIp(c), timeStr, 0)
|
a.tgbot.UserLoginNotify(safeUser, safePass, getRemoteIp(c), timeStr, 0)
|
||||||
pureJsonMsg(c, http.StatusOK, false, I18nWeb(c, "pages.login.toasts.wrongUsernameOrPassword"))
|
pureJsonMsg(c, http.StatusOK, false, I18nWeb(c, "pages.login.toasts.wrongUsernameOrPassword"))
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue