Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicAuthToken ¶
func (*BasicAuthToken) Regenerate ¶
func (bat *BasicAuthToken) Regenerate(tokenDuration time.Duration) error
type UserBasic ¶
func (UserBasic) ComparePassword ¶
ComparePassword checks the password hash against another password. Is expected that the UserBasic stored password is already encrypted by the EncryptPassword method, and the other password should not be encrypted.
func (UserBasic) EncryptPassword ¶
EncryptPassword hashes a password using bcrypt with the configured cost.
func (UserBasic) ObfuscateEmail ¶
Click to show internal directories.
Click to hide internal directories.