*
Jes Olson j3s@c3f.net
Thu, 16 Mar 2023 00:11:20 -0700
1 files changed,
3 insertions(+),
0 deletions(-)
jump to
M
site.go
→
site.go
@@ -131,6 +131,9 @@ http.Redirect(w, r, "/", http.StatusSeeOther)
} } +// username fetches a client's username based +// on the sessionToken that user has set. username +// will return "" if there is no sessionToken. func (s *Site) username(r *http.Request) string { sessionToken, err := r.Cookie("session_token") if err != nil {