diff options
Diffstat (limited to 'http_auth.go')
-rw-r--r-- | http_auth.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/http_auth.go b/http_auth.go index 8208daf..03b7e2b 100644 --- a/http_auth.go +++ b/http_auth.go @@ -7,6 +7,8 @@ import ( "net/http" ) +// getUserFromRequest returns the user ID and username associated with the +// session cookie in a given [http.Request]. func getUserFromRequest(request *http.Request) (id int, username string, err error) { var sessionCookie *http.Cookie |