diff options
| author | mhsanaei <ho3ein.sanaei@gmail.com> | 2024-07-04 15:34:35 +0300 |
|---|---|---|
| committer | mhsanaei <ho3ein.sanaei@gmail.com> | 2024-07-04 16:04:04 +0300 |
| commit | 24b9e5bfa377f32e0942fbc9a207864b55b20d4a (patch) | |
| tree | d248e07043636ee4cfd126a5037911851f72705b /web/controller | |
| parent | 9ff7f14b6e8c3d209d30f8824527f8235434f8e4 (diff) | |
some changes
Diffstat (limited to 'web/controller')
| -rw-r--r-- | web/controller/index.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/web/controller/index.go b/web/controller/index.go index fc5480c4..f887062a 100644 --- a/web/controller/index.go +++ b/web/controller/index.go @@ -70,7 +70,7 @@ func (a *IndexController) login(c *gin.Context) { pureJsonMsg(c, http.StatusOK, false, I18nWeb(c, "pages.login.toasts.wrongUsernameOrPassword")) return } else { - logger.Infof("%s Successful Login, Ip Address: %s\n", form.Username, getRemoteIp(c)) + logger.Infof("%s logged in successfully, Ip Address: %s\n", form.Username, getRemoteIp(c)) a.tgbot.UserLoginNotify(form.Username, ``, getRemoteIp(c), timeStr, 1) } @@ -87,14 +87,14 @@ func (a *IndexController) login(c *gin.Context) { } err = session.SetLoginUser(c, user) - logger.Info("user ", user.Id, " login success") + logger.Info(user.Username, " logged in successfully") jsonMsg(c, I18nWeb(c, "pages.login.toasts.successLogin"), err) } func (a *IndexController) logout(c *gin.Context) { user := session.GetLoginUser(c) if user != nil { - logger.Info("user ", user.Id, " logout") + logger.Info(user.Username, "logged out successfully") } session.ClearSession(c) c.Redirect(http.StatusTemporaryRedirect, c.GetString("base_path")) |
