Fixed site ownership
This commit is contained in:
parent
cb54057305
commit
50f7e9632e
20 changed files with 192 additions and 78 deletions
|
|
@ -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"`
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,6 +5,5 @@ type Site struct {
|
|||
OwnerUserID int64
|
||||
Name string
|
||||
Title string
|
||||
URL string
|
||||
Theme string
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue