feat: (rbac) user session

This commit is contained in:
xushuhui 2022-04-20 16:31:56 +08:00
parent e25fc8da10
commit b8b9765292
1 changed files with 2 additions and 0 deletions

View File

@ -43,6 +43,8 @@ func (h Account) Login(w http.ResponseWriter, r *http.Request, ps httprouter.Par
return
}
data["status"] = "ok"
api.SetSession(w, r, userInSession, req.Username)
h.WriteOKJSON(w, data)
}