Documentation
¶
Index ¶
Constants ¶
View Source
const ( // The amount of characters generated for random // passwords. RandomPasswordLength = 24 )
Variables ¶
This section is empty.
Functions ¶
func CreatePassword ¶
func CreatePassword() string
CreatePassword
Creates a random password with a character length of 24.
func GenerateEmailToken ¶
GenerateEmailToken
Generates a token based on the email given.
Returns errors.INTERNAL if the bcrypt failed to generate from password.
func GenerateSessionToken ¶
GenerateSessionToken
Returns a session unique token based on the provided email string.
func HashPassword ¶
HashPassword
Gets the password in byte format and generates a hashed password with the default cost of 10.
Returns errors.INTERNAL if the bcrypt failed to generate from password.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.