Skip to content
Snippets Groups Projects
Commit c31919d0 authored by ale's avatar ale
Browse files

Log successful authorizations (with ttl)

parent ca680333
Branches
No related tags found
No related merge requests found
......@@ -299,6 +299,8 @@ func (h *Server) handleGrantTicket(w http.ResponseWriter, req *http.Request) {
return
}
log.Printf("authorized %s for %s (ttl=%ds)", username, service, int(ttl.Seconds()))
// Record the service in the session.
auth.AddService(service)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment