Documentation ¶
Index ¶
- func ComparePassword(hashedPassword string, candidatePassword string) error
- func ExtractToken(c *gin.Context) string
- func ExtractTokenID(c *gin.Context) (string, error)
- func GenerateToken(user_id string) (string, error)
- func HashPassword(password string) string
- func Login(c *gin.Context)
- func LoginCheck(username string, password string) (string, error)
- func TokenValid(c *gin.Context) error
- type LoginInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComparePassword ¶
func ExtractToken ¶
func GenerateToken ¶
func HashPassword ¶
func TokenValid ¶
Types ¶
type LoginInput ¶
Click to show internal directories.
Click to hide internal directories.