helpers

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2023 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CensorUserPassword

func CensorUserPassword(user *models.User)

func ClearTemporaryFlashes

func ClearTemporaryFlashes() echo.MiddlewareFunc

func DeleteFlash

func DeleteFlash(c echo.Context, name string)

func GenerateActivationKey

func GenerateActivationKey(length int) string

func GetFlash

func GetFlash(c echo.Context, name string) interface{}

func GetJWT

func GetJWT(cfg config.Keys) (string, error)

func GetUserLastLanguage

func GetUserLastLanguage(ctx context.Context, DB *sql.DB, userID int) (string, error)

func HasUserSolved

func HasUserSolved(DB *sql.DB, userID int, problemSet, problemName string) (problem.SolvedStatus, error)

func LoginRequired

func LoginRequired(c echo.Context) error

func SetFlash

func SetFlash(c echo.Context, name string, value interface{})

func UnauthorizedError

func UnauthorizedError(c echo.Context) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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