Skip to content

Commit

Permalink
save comments
Browse files Browse the repository at this point in the history
  • Loading branch information
stremovsky committed Aug 18, 2024
1 parent 383286f commit 9f9de46
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/sessions_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9f9de46

Please sign in to comment.