MCPcopy
hub / github.com/writefreely/writefreely / getUserSession

Function getUserSession

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

Source from the content-addressed store, hash-verified

105}
106
107func getUserSession(app *App, r *http.Request) *User {
108 u, _ := getUserAndSession(app, r)
109 return u
110}
111
112func saveUserSession(app *App, r *http.Request, w http.ResponseWriter) error {
113 session, err := app.sessionStore.Get(r, cookieName)

Callers 15

handleViewPostFunction · 0.85
newPostFunction · 0.85
existingPostFunction · 0.85
deletePostFunction · 0.85
addPostFunction · 0.85
dispersePostFunction · 0.85
pinPostFunction · 0.85
signupFunction · 0.85
viewExportFullFunction · 0.85
viewMeAPIFunction · 0.85
UserMethod · 0.85
AdminMethod · 0.85

Calls 1

getUserAndSessionFunction · 0.85

Tested by

no test coverage detected