Add HandleLoggedIn().

This commit is contained in:
Yang Luo
2021-03-15 19:11:41 +08:00
parent 4a170d1d56
commit 0ce7420907
3 changed files with 8 additions and 16 deletions

View File

@ -109,9 +109,7 @@ func (c *ApiController) Login() {
if msg != "" {
resp = Response{Status: "error", Msg: msg, Data: ""}
} else {
c.SetSessionUser(userId)
util.LogInfo(c.Ctx, "API: [%s] logged in", userId)
c.HandleLoggedIn(userId)
resp = Response{Status: "ok", Msg: "", Data: userId}
}