From 9b3e906a0ab6592eda40ae043bfff26ca07fe80d Mon Sep 17 00:00:00 2001 From: Julian Hurst Date: Fri, 20 Jan 2023 00:46:23 +0100 Subject: Multisession shit --- imgs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'imgs.go') diff --git a/imgs.go b/imgs.go index c1be6bc..e0495a0 100644 --- a/imgs.go +++ b/imgs.go @@ -26,7 +26,7 @@ func imgs(w http.ResponseWriter, r *http.Request) { sendError(w, r, err.Error(), http.StatusInternalServerError) return } - userDocPath := filepath.Join(baseDocDir, u.User) + userDocPath := filepath.Join(baseDocDir, u.Username) err = os.Mkdir(userDocPath, 0750) if err != nil && !os.IsExist(err) { sendError(w, r, err.Error(), http.StatusInternalServerError) -- cgit v1.2.3