validate

package
v0.0.0-...-85dfee8 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsEmailValid

func IsEmailValid(e string) bool

Validate a provided email by attempting to parse an RFC 5322 address and then performing an MX lookup on the retrieved domain.

func IsPasswordValid

func IsPasswordValid(password string, passLength int) bool

Validate the password meets complexity requirements. Provide desired password length as integer.

func IsRegisterValid

func IsRegisterValid(registerAttempt models.UserRegister) (bool, error)

Takes a UserRegister struct and validates that all of the struct's values pass our validation functions.

Types

This section is empty.

Jump to

Keyboard shortcuts

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