helper

package
v0.0.0-...-5bca223 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2018 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPasswordHash

func CheckPasswordHash(password string, hash string) bool

Check a password hash

func Forbidden

func Forbidden(message string, c *gin.Context)

func GetClientUser

func GetClientUser(c *gin.Context) (common.User, bool)

func HashPassword

func HashPassword(password string) (string, error)

 Hash a password with bcrypt

func Unauthorized

func Unauthorized(c *gin.Context)

Types

This section is empty.

Jump to

Keyboard shortcuts

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