Documentation ¶
Index ¶
Constants ¶
View Source
const EmailRegex = "^[a-zA-Z0-9]+(?:\\.[a-zA-Z0-9]+)*@[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*(?:\\.[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*)*$"
* Email standard
View Source
const MaxDisplayNameLength = 32 // is 32 now cause it is encoded with base64 and utf8
* Account display name standard
View Source
const MaxUsernameLength = 16
View Source
const MinUsernameLength = 3
* Account name standard
View Source
const UsernameAllowedCharacters = "^[\\p{Ll}\\p{N}_\\-]+$"
Variables ¶
This section is empty.
Functions ¶
func CheckDisplayName ¶
func CheckDisplayName(username string) localization.Translations
Check the requirements for a display name
func CheckEmail ¶
func CheckUsername ¶
func CheckUsername(username string) localization.Translations
Check the requirements for a username
func NormalizeEmail ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.