Documentation
¶
Index ¶
- func ChangePassword(db *gorm.DB, username, newPassword string) error
- func EnsureAdminUser(db *gorm.DB, username, password string) error
- func GenerateJWT(username, secretKey string) (string, time.Time, error)
- func ValidateCredentials(db *gorm.DB, username, password string) (bool, error)
- func ValidateJWT(tokenStr, secretKey string) (jwt.MapClaims, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateCredentials ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.