Documentation ¶
Index ¶
- func CheckPasswordHash(password, hash string) bool
- func CompareMovies(db, uploaded *MovieList) MovieList
- func DecodeCookie(req *http.Request, user *User) (*Token, error)
- func HashPassword(password string) (string, error)
- func ReadCSV(file *multipart.File) (MovieList, error)
- func SetCookie(tkn *Token, user *User) *http.Cookie
- func VerifyEMail(email string) bool
- func VerifyPassword(s string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPasswordHash ¶
CheckPasswordHash helps to decode hashed password
func CompareMovies ¶
func CompareMovies(db, uploaded *MovieList) MovieList
CompareMovies helps to compare db data and upload file data
func DecodeCookie ¶
DecodeCookie checks cookie and returns token
func HashPassword ¶
HashPassword helps to hashing password before save the db
func VerifyPassword ¶
VerifyPassword checks user password that match or not 1 lower, 1 upper, 1 number, 1 special chars and length of password
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.