- func Create(u *User) error
- func Normalize(username string) string
- func UsernameExists(username string) bool
- type ByName
- type User
This section is empty.
DB is a reference to the parent app's JsonDB object.
var HashCost = 14
HashCost is the cost value given to bcrypt to hash passwords. TODO: make configurable from main package
User holds information about a user account.
CheckAuth tests a login with a username and password.
func DeletedUser ¶
func DeletedUser() *User
DeletedUser returns a User object to represent a deleted (non-existing) user.
func LoadReadonly ¶
LoadReadonly loads a user for read-only use, so the Password is masked.
func LoadUsername ¶
LoadUsername loads a user by username.