fix: 设置登录IP和登录时间
This commit is contained in:
1 parent
7aca7b2fc1
commit
ec76e34576
5 files changed
+28
-4
No files matched your search
@@ -73,6 +73,7 @@ func (s *AccountController) Login(c *gin.Context) {
|
||||
c.JSON(200, result.Err(nil))
|
||||
return
|
||||
} else {
|
||||
s.accountService.UpdateLoginDateAndIP(&loginUser)
|
||||
s.sysLogLoginService.CreateSysLogLogin(
|
||||
loginBody.Username, commonConstants.STATUS_YES, "登录成功",
|
||||
ipaddr, location, os, browser,
|
||||
|
||||
Reference in new issue
Block a user