Documentation
¶
Index ¶
- Variables
- type AdminListUser
- type Passkey
- type User
- func (u *User) CheckPassword(candidate string) error
- func (u *User) CheckTOTP(code string) bool
- func (u *User) GroupsOverlap(groups []string) bool
- func (u *User) HasRole(r string) bool
- func (u *User) SetPassword(password string) error
- func (u *User) TOTPEnabled() bool
- func (u *User) WebAuthnCredentials() []webauthn.Credential
- func (u *User) WebAuthnDisplayName() string
- func (u *User) WebAuthnID() []byte
- func (u *User) WebAuthnIcon() string
- func (u *User) WebAuthnName() string
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type AdminListUser ¶
type User ¶
type User struct {
Id string
Username string
PasswordHash string
Roles []string
Admin bool
TOTPSeed *string
RecoveryCodes []string
PasswordTimestamp int64
StoredCredentials []Passkey
Disabled bool
}
func (*User) CheckPassword ¶
func (*User) GroupsOverlap ¶
func (*User) SetPassword ¶
func (*User) TOTPEnabled ¶
func (*User) WebAuthnCredentials ¶
func (u *User) WebAuthnCredentials() []webauthn.Credential
func (*User) WebAuthnDisplayName ¶
func (*User) WebAuthnID ¶
func (*User) WebAuthnIcon ¶
func (*User) WebAuthnName ¶
Click to show internal directories.
Click to hide internal directories.