MCPcopy Index your code
hub / github.com/writefreely/writefreely / getFullUserSession

Function getFullUserSession

session.go:137–146  ·  view source on GitHub ↗
(app *App, r *http.Request)

Source from the content-addressed store, hash-verified

135}
136
137func getFullUserSession(app *App, r *http.Request) (*User, error) {
138 u := getUserSession(app, r)
139 if u == nil {
140 return nil, nil
141 }
142
143 var err error
144 u, err = app.db.GetUserByID(u.ID)
145 return u, err
146}

Callers

nothing calls this directly

Calls 2

getUserSessionFunction · 0.85
GetUserByIDMethod · 0.65

Tested by

no test coverage detected