middleware

package
v0.0.3-alpha Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckHashPassword

func CheckHashPassword(hash, password string) bool

CheckHashPassword: hash for password to bool

func ClearSession

func ClearSession(c echo.Context) (err error)

ClearSession: delete session from User

func GetAuth

func GetAuth(c echo.Context) (session_gorilla *sessions.Session, err error)

GetAuth: get session from User

func PasswordHash

func PasswordHash(password string) (string, error)

PasswordHash: hash for password to string

func RefreshSession

func RefreshSession(user models.User, c echo.Context) (session_gorilla *sessions.Session, err error)

RefreshSession: refresh session from User

func SetSession

func SetSession(user models.User, c echo.Context) (session_gorilla *sessions.Session, err error)

SetSession: set session from User

Types

This section is empty.

Jump to

Keyboard shortcuts

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