Fixed site ownership

This commit is contained in:
Leon Mika 2025-02-01 10:56:59 +11:00
parent cb54057305
commit 50f7e9632e
20 changed files with 192 additions and 78 deletions

View file

@ -2,8 +2,13 @@ package models
const (
AuthCookieName = "hugocrm_auth"
PrefCookieName = "hugocrm_pref"
)
type AuthCookie struct {
UserID int64 `json:"uid"`
}
type PrefCookie struct {
SiteID int64 `json:"siteId"`
}

View file

@ -5,6 +5,5 @@ type Site struct {
OwnerUserID int64
Name string
Title string
URL string
Theme string
}