Documentation ¶
Index ¶
- Variables
- func AddToUserNotes(message string, user int) error
- func AddY(c *gin.Context, y string)
- func LogIP(c *gin.Context, user int) error
- func SafeUsername(u string) string
- func SetCountry(c *gin.Context, user int) error
- func SetYCookie(userID int, c *gin.Context)
- func ValidateEmail(email string) bool
- func ValidateUsername(s string) string
Constants ¶
This section is empty.
Variables ¶
View Source
var EmailValidator = ev.NewDepBuilder( ev.ValidatorMap{ ev.RoleValidatorName: ev.NewRoleValidator(role.NewRBEASetRole()), ev.DisposableValidatorName: ev.NewDisposableValidator(contains.NewFunc(disposable.MailChecker)), ev.SyntaxValidatorName: ev.NewSyntaxValidator(), ev.MXValidatorName: ev.DefaultNewMXValidator(), }, ).Build()
build validator without smtp check as it caused issues.
Functions ¶
func AddToUserNotes ¶
func SafeUsername ¶
func SetYCookie ¶
func ValidateEmail ¶
func ValidateUsername ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.