Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Authenticate ¶
func Authenticate(user *user_model.User, login, password string) (*user_model.User, error)
Authenticate authenticates the provided user against the DB
Types ¶
type Source ¶
type Source struct{}
Source is a password authentication service
func (*Source) Authenticate ¶
func (source *Source) Authenticate(user *user_model.User, login, password string) (*user_model.User, error)
Authenticate queries if login/password is valid against the PAM, and create a local user if success when enabled.
Click to show internal directories.
Click to hide internal directories.