Documentation ¶
Overview ¶
Package tokens implements various user and admin tokens generation methods.
Index ¶
- func NewAdminAuthToken(app core.App, admin *models.Admin) (string, error)
- func NewAdminResetPasswordToken(app core.App, admin *models.Admin) (string, error)
- func NewUserAuthToken(app core.App, user *models.User) (string, error)
- func NewUserChangeEmailToken(app core.App, user *models.User, newEmail string) (string, error)
- func NewUserResetPasswordToken(app core.App, user *models.User) (string, error)
- func NewUserVerifyToken(app core.App, user *models.User) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAdminAuthToken ¶
NewAdminAuthToken generates and returns a new admin authentication token.
func NewAdminResetPasswordToken ¶
NewAdminResetPasswordToken generates and returns a new admin password reset request token.
func NewUserAuthToken ¶
NewUserAuthToken generates and returns a new user authentication token.
func NewUserChangeEmailToken ¶
NewUserChangeEmailToken generates and returns a new user change email request token.
func NewUserResetPasswordToken ¶
NewUserResetPasswordToken generates and returns a new user password reset request token.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.