# Functions
CustomAvatarPath returns the absolute path of the user custom avatar file.
DashboardURLPath returns the URL path to the user or organization dashboard.
EncodePassword encodes password using PBKDF2 SHA256 with given salt.
GenerateActivateCode generates an activate code based on user information and the given email.
GenerateRandomAvatar generates a random avatar and stores to local file system using given user information.
MailResendCacheKey returns the key used for caching mail resend.
RandomSalt returns randomly generated 10-character string that can be used as the user salt.
SaveAvatar saves the given avatar for the user.
TwoFactorCacheKey returns the key used for caching two factor passcode.
ValidatePassword returns true if the given password matches the encoded version with given salt.