Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *gorm.DB
DB ...
Functions ¶
func ComparePasswords ¶
ComparePasswords compares a hash with a password
func GenerateRandomBytes ¶
GenerateRandomBytes securely generates random bytes.
func GenerateRandomString ¶
GenerateRandomString returns a base64 encoded securely generated random string.
func ParseUserDBError ¶
ParseUserDBError parses the error returned from Postgres when a unique kep exists
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.