Fixed cookie not set

This commit is contained in:
2022-01-31 12:54:56 +01:00
parent 2a30d8f0ff
commit a96d9b5c68

View File

@@ -34,6 +34,7 @@ func Login(w http.ResponseWriter, r *http.Request) {
http.SetCookie(w, &http.Cookie{ http.SetCookie(w, &http.Cookie{
Name: "session_id", Name: "session_id",
Value: sessionID, Value: sessionID,
Path: "/",
}) })
w.WriteHeader(http.StatusOK) w.WriteHeader(http.StatusOK)
} }