validation

package
v1.53.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAllowedEmailDomain added in v1.16.0

func IsAllowedEmailDomain(email string, allowedDomains []string) bool

IsAllowedEmailDomain - validates email address is a valid email format and the domain is in the allowed list in config

func IsEmailValid

func IsEmailValid(e string) bool

IsEmailValid is a function to validate email addresses. Here an email is valid if it follows the standard rules for valid email addresses. The unit tests contain examples of what are considered valid or invalid email addresses. Here we do not validate on the domain name.

func IsPasswordValid added in v1.8.0

func IsPasswordValid(p string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL