Documentation ¶
Index ¶
- func CheckPassword(password, hashedPassword string) bool
- func Decrypt(text *[]byte)
- func Encrypt(text *[]byte)
- func GetPaginationParams(URL url.Values) struct{ ... }
- func HasNonPatternChars(s, pattern string) bool
- func SaveBase64ToFile(base64String, storageDir string) (string, error)
- func ValidateLogin(login string) error
- func ValidatePassword(password string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPassword ¶
func GetPaginationParams ¶
func HasNonPatternChars ¶
HasNonPatternChars checks if the string contains characters that don't match the given pattern.
func SaveBase64ToFile ¶
func ValidateLogin ¶
ValidateLogin checks if the login is either a valid username or a valid email address.
func ValidatePassword ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.