feat: (rbac) user session
This commit is contained in:
parent
e25fc8da10
commit
b8b9765292
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue