controllers

package
v0.0.0-...-86131fc Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HashPassword

func HashPassword(password string) string

HashPassword is used to encrypt the password before it is stored in the DB

func Login

func Login() gin.HandlerFunc

Login is the api used to get a single user

func SignUp

func SignUp() gin.HandlerFunc

CreateUser is the api used to get a single user

func SimpleEndpoint

func SimpleEndpoint() gin.HandlerFunc

func UploadImages

func UploadImages() gin.HandlerFunc

func VerifyPassword

func VerifyPassword(userPassword string, providedPassword string) (bool, string)

VerifyPassword checks the input password while verifying it with the password in the DB

Types

This section is empty.

Jump to

Keyboard shortcuts

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