Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SqlTableName = "auth_password" SqlCreatePassword = ` CREATE TABLE IF NOT EXISTS ` + SqlTableName + ` ( id TEXT NOT NULL, hash BYTEA NOT NULL, PRIMARY KEY (id, hash) ) ` )
Functions ¶
This section is empty.
Types ¶
type Store ¶
func (*Store) Authenticate ¶
Authenticate returns true if and only if the plain text password given matches the password hash associated with the user. An error is returned if there was a problem finding the user given or if there was an unexpected error comparing the password hashes. If the password does not match, then the error is nil and the bool is false.
Click to show internal directories.
Click to hide internal directories.