authentication

package
v0.0.0-...-f81473c Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComparePasswords

func ComparePasswords(password, hash string) error

ComparePasswords to check the user's password

func ForgotPassword

func ForgotPassword() fiber.Handler

ForgotPassword - reset forgotten password

func HashPassword

func HashPassword(password string) (string, error)

HashPassword to hash the user's password

func Login

func Login() fiber.Handler

Login to add user session Uses email and password to login

func Logout

func Logout() fiber.Handler

Logout to clear the session

func Signup

func Signup() fiber.Handler

Signup - creates and saves a new user

func UpdatePassword

func UpdatePassword() fiber.Handler

UpdatePassword update users password

Types

This section is empty.

Jump to

Keyboard shortcuts

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