From 9f9de461455933b74f2ae05cfbeecc0123c71cad Mon Sep 17 00:00:00 2001 From: yuli Date: Sun, 18 Aug 2024 22:50:14 +0300 Subject: [PATCH] save comments --- src/sessions_api.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/sessions_api.go b/src/sessions_api.go index 9e6e3137..ad233a9c 100644 --- a/src/sessions_api.go +++ b/src/sessions_api.go @@ -86,10 +86,12 @@ func (e mainEnv) deleteSession(w http.ResponseWriter, r *http.Request, ps httpro fmt.Fprintf(w, `{"status":"ok"}`) } + +// the following function is currently not used func (e mainEnv) newUserSession(w http.ResponseWriter, r *http.Request, ps httprouter.Params) { identity := ps.ByName("identity") mode := ps.ByName("mode") - event := audit("create user session", identity, mode, identity) + event := audit("create user session by "+mode, identity, mode, identity) defer func() { event.submit(e.db, e.conf) }() userTOKEN := e.loadUserToken(w, r, mode, identity, event)