auth

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangePassword

func ChangePassword(db *gorm.DB, username, newPassword string) error

func EnsureAdminUser

func EnsureAdminUser(db *gorm.DB, username, password string) error

func GenerateJWT

func GenerateJWT(username, secretKey string) (string, time.Time, error)

func ValidateCredentials

func ValidateCredentials(db *gorm.DB, username, password string) (bool, error)

func ValidateJWT

func ValidateJWT(tokenStr, secretKey string) (jwt.MapClaims, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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