From 5d33a99bdb1b9f56ea281699a8c72dd76f57c989 Mon Sep 17 00:00:00 2001 From: Yang Luo Date: Mon, 25 Sep 2023 18:47:43 +0800 Subject: [PATCH] fix: update User struct --- casdoorsdk/user.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/casdoorsdk/user.go b/casdoorsdk/user.go index 62baf8c..302ea3b 100644 --- a/casdoorsdk/user.go +++ b/casdoorsdk/user.go @@ -95,7 +95,6 @@ type User struct { IsDefaultAvatar bool `json:"isDefaultAvatar"` IsOnline bool `json:"isOnline"` IsAdmin bool `json:"isAdmin"` - IsGlobalAdmin bool `json:"isGlobalAdmin"` IsForbidden bool `json:"isForbidden"` IsDeleted bool `json:"isDeleted"` SignupApplication string `xorm:"varchar(100)" json:"signupApplication"` @@ -182,16 +181,16 @@ type User struct { Yandex string `xorm:"yandex varchar(100)" json:"yandex"` Zoom string `xorm:"zoom varchar(100)" json:"zoom"` MetaMask string `xorm:"metamask varchar(100)" json:"metamask"` + Web3Onboard string `xorm:"web3onboard varchar(100)" json:"web3onboard"` Custom string `xorm:"custom varchar(100)" json:"custom"` // WebauthnCredentials []webauthn.Credential `xorm:"webauthnCredentials blob" json:"webauthnCredentials"` - // MultiFactorAuths []*MfaProps `xorm:"-" json:"multiFactorAuths,omitempty"` - PreferredMfaType string `xorm:"varchar(100)" json:"preferredMfaType"` RecoveryCodes []string `xorm:"varchar(1000)" json:"recoveryCodes"` TotpSecret string `xorm:"varchar(100)" json:"totpSecret"` MfaPhoneEnabled bool `json:"mfaPhoneEnabled"` MfaEmailEnabled bool `json:"mfaEmailEnabled"` + // MultiFactorAuths []*MfaProps `xorm:"-" json:"multiFactorAuths,omitempty"` Ldap string `xorm:"ldap varchar(100)" json:"ldap"` Properties map[string]string `json:"properties"`