package
19.12.2+incompatible
Repository: https://github.com/joshsziegler/zauth.git
Documentation: pkg.go.dev

# Functions

GetPasswordResetValue return the password reset value for a user given their username.
GetUsersWithoutGroups returns a map of users, stored by their database ID.
GetUserWithGroups returns a single User struct, including the groups they belong to (in alphabetical ascending order by name).
Init sets the logger, and database connection object for internal use.
Login returns nil IFF the account is not disabled AND the password is correct.
NewUser creates a new user (if details are valid), and send them an email so they can set their initial password.
SetUserPassword checks the password's strength, and if ok, updates the database.
No description provided by the author
No description provided by the author
ValidatePasswordResetToken returns the username this password reset token belongs to if and only if it is valid.

# Constants

MySQLZeroDate is a workaround for MySQL not supporting Go's Zero-value for Dates (0000-00-00 00:00:00).

# Variables

No description provided by the author
No description provided by the author
No description provided by the author

# Structs

User represents an LDAP user's attributes and group membership Assumptions: - Once created, a user's username and ID will NEVER change.