Documentation ¶
Overview ¶
Package mysqlstore holds an implementation of github.com/alienscience/imapsrv/auth - AuthStore, using MySQL
Index ¶
- type MySQLAuthStore
- func (m *MySQLAuthStore) Authenticate(username, plainPassword string) (success bool, err error)
- func (m *MySQLAuthStore) CreateUser(username, plainPassword string) error
- func (m *MySQLAuthStore) DeleteUser(username string) error
- func (m *MySQLAuthStore) ListUsers() (usernames []string, err error)
- func (m *MySQLAuthStore) ResetPassword(username, plainPassword string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MySQLAuthStore ¶
type MySQLAuthStore struct { }
func (*MySQLAuthStore) Authenticate ¶
func (m *MySQLAuthStore) Authenticate(username, plainPassword string) (success bool, err error)
Authenticate attempts to authenticate the given credentials
func (*MySQLAuthStore) CreateUser ¶
func (m *MySQLAuthStore) CreateUser(username, plainPassword string) error
CreateUser creates a user with the given username
func (*MySQLAuthStore) DeleteUser ¶
func (m *MySQLAuthStore) DeleteUser(username string) error
DeleteUser removes the username from the database entirely
func (*MySQLAuthStore) ListUsers ¶
func (m *MySQLAuthStore) ListUsers() (usernames []string, err error)
ListUsers lists all information about the users TODO: this could be very neat for the sysadmin, but probably a lot of metadata
about users is desired, and not just the usernames.
func (*MySQLAuthStore) ResetPassword ¶
func (m *MySQLAuthStore) ResetPassword(username, plainPassword string) error
ResetPassword resets the password for the given username
Click to show internal directories.
Click to hide internal directories.