Documentation
¶
Overview ¶
Package password signs in with a Moodle username and password.
It only works for accounts Moodle authenticates itself. An account behind SSO cannot use it: the identity provider, not Moodle, holds the password.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientFactory ¶
ClientFactory builds a transport client for a site.
type Method ¶
type Method struct {
// contains filtered or unexported fields
}
Method signs in with a username and password.
func New ¶
func New(newClient ClientFactory, readPassword func() (string, error)) *Method
New builds the method.