mysqlstore

package
v0.0.0-...-e48fc18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 1, 2016 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Overview

Package mysqlstore holds an implementation of github.com/alienscience/imapsrv/auth - AuthStore, using MySQL

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL