Documentation ¶
Index ¶
Constants ¶
View Source
const EmailMaxLength = 64
Variables ¶
This section is empty.
Functions ¶
func HashPassword ¶
func HashPassword(password models.Password) (models.PasswordHash, error)
func NewUser ¶
NewUser validates a user's invariants and returns the User. It does not save the entity to storage. The caller must persist the new entity by calling its `Save()` method.
func ValidateEmail ¶
func ValidateEmail(email models.EmailAddress) error
func ValidatePassword ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.