auth

package
v0.0.0-...-aef9128 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPasswordStrength

func CheckPasswordStrength(s string) bool

CheckPasswordStrength checks for the following:

  • min length 7
  • uppercase
  • lowercase
  • number
  • special character

func LoginCheck

func LoginCheck(email, password string) (t string, u models.User, e error)

LoginCheck checks validity of given email/password, and returns token in user exists and password is correct.

func VerifyPassword

func VerifyPassword(password, hashedPassword string) error

VerifyPassword checks plaintext password against a hashed one.

Types

This section is empty.

Jump to

Keyboard shortcuts

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