From b8b97652929a472046163ba984a6da0a039268c0 Mon Sep 17 00:00:00 2001 From: xushuhui Date: Wed, 20 Apr 2022 16:31:56 +0800 Subject: [PATCH] feat: (rbac) user session --- plugin/api/account/account.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugin/api/account/account.go b/plugin/api/account/account.go index 6cd6f679..52f41b5e 100644 --- a/plugin/api/account/account.go +++ b/plugin/api/account/account.go @@ -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) }