Documentation ¶
Index ¶
- func CheckUserCredential(user *domain.User, mail, pasword, pin string) error
- func GenerateToken(ttl time.Duration, payload interface{}, secretJWTKey string) (string, error)
- func GetOtpUrl(user *domain.User) string
- func HashPassword(password string) (string, error)
- func ParseTemplateDir(dir string) (*template.Template, error)
- func SendEmail(user *domain.User, config domain.SysConfig)
- func ValidateToken(token string, signedJWTKey string) (interface{}, error)
- func VerifyPassword(hashedPassword string, candidatePassword string) error
- type EmailData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckUserCredential ¶
func GenerateToken ¶
func HashPassword ¶
func ParseTemplateDir ¶
👇 Email template parser
func ValidateToken ¶
func VerifyPassword ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.