Documentation
¶
Index ¶
- func CheckPasswordHash(password, hash string) bool
- func FirstN(s string, n int) string
- func GenerateGavatarUrl(email string) string
- func GenerateHashSecret(secret, token string) (string, error)
- func GenerateJWT(user user.User) (string, int64, error)
- func GenerateSlug(title string) string
- func HashPassword(password string) (string, error)
- func IsEmailValid(e string) bool
- func IsInternalMail(email string) bool
- func LogFatal(fields interface{})
- func LogInfo(fields interface{})
- func LogWarn(fields interface{})
- func SendEmailWithToken(email, url string) (error, bool)
- func SendRefreshToken(user user.User) (string, int64, error)
- func ValidateHash(value, hash string) bool
- func ValidateRefreshToken(tokenString string) (interface{}, interface{}, interface{}, error)
- func VerifyToken(tokenString string) (user.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPasswordHash ¶
func FirstN ¶
@utils Return first n chars of a string https://stackoverflow.com/a/41604514/17126147
func GenerateGavatarUrl ¶
func GenerateHashSecret ¶
func GenerateSlug ¶
generate a unique slug for a post @TODO do more validations and checking
func HashPassword ¶
func IsEmailValid ¶
func IsInternalMail ¶
func SendEmailWithToken ¶
func ValidateHash ¶
func ValidateRefreshToken ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.