validation

package
v0.0.0-...-0456d95 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComparePasswordHash

func ComparePasswordHash(password, passwordHash string) error

ComparePasswordHash - given a password and a password hash use bcrypt to compare both passwords, returning an error if they do not match

func CreatePasswordHash

func CreatePasswordHash(password string) (string, error)

CreatePasswordHash - given a password use bcrypt to generate a password hash

func ValidateEmail

func ValidateEmail(email string) error

ValidateEmail - given an email, call validation functions to verify if email is valid

func ValidateName

func ValidateName(name string) error

ValidateName - given a name, call validation functions to verify if name is valid

func ValidatePassword

func ValidatePassword(password, passwordCheck string) error

ValidatePassword - given a password, call validation functions to verify if password is valid

Types

This section is empty.

Jump to

Keyboard shortcuts

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