Documentation
¶
Index ¶
- type OtpInformation
- type User
- func (u *User) Authenticate(password string) string
- func (u *User) ChangePassword(token string, password string) error
- func (u *User) GetMetadata() *UserMetadata
- func (u *User) HasOTP() bool
- func (u *User) SetMetadata(metadata *UserMetadata) error
- func (u *User) SetupOTP(twoFactorPeriod int64) (*OtpInformation, error)
- func (u *User) ValidateOtp(otp string) (bool, error)
- type UserMetadata
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OtpInformation ¶
type User ¶
type User struct {
Username string
// contains filtered or unexported fields
}
func (*User) Authenticate ¶
func (*User) GetMetadata ¶
func (u *User) GetMetadata() *UserMetadata
func (*User) SetMetadata ¶
func (u *User) SetMetadata(metadata *UserMetadata) error
Click to show internal directories.
Click to hide internal directories.