Documentation ¶
Index ¶
Constants ¶
View Source
const ( Apr1MD5 hashing = 0 Bcrypt = 1 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auths ¶
type Auths struct { // All indicates whether everybody is granted access. All bool // contains filtered or unexported fields }
Auths represents an authentication registry.
func (*Auths) Authenticate ¶
Authenticate checks whether the user is authentic by checking his/her password against the authentication registry.
If the authentication passes, ok is set to true. In case that the authentication fails, ok is false and the message indicates the reason of the authentication failure.
If there was an error during the authentication, err will be set.
Click to show internal directories.
Click to hide internal directories.