Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateForgotPasswordLink ¶
func GenerateForgotPasswordLink(c *fiber.Ctx) error
GenerateForgotPasswordLink sends a reset password link to the email
func GetUserByUsername ¶
func GetUserByUsername(c *fiber.Ctx) error
GetUserByUsername returns a user information associated with id HealthCheck godoc @Summary Get a user using username. @Description returns a user info using username. @Tags user @Param username path string true "username" @Accept */* @Produce json @Success 200 {object} map[string]interface{} @Router /users/{username} [get]
func ResetPasswordFromLink ¶
func ResetPasswordFromLink(c *fiber.Ctx) error
ResetPasswordFromLink resets the password from a link
func UpdatePassword ¶
func UpdatePassword(c *fiber.Ctx) error
UpdatePassword changes the password for a given valid user HealthCheck godoc @Summary Update user password @Description updates user info @Tags user @Param username path string true "username" @Param data body UserUpdatePasswordRequest true "data" @Accept */* @Produce json @Success 200 {object} map[string]interface{} @Router /users/password [put]
func UpdateUser ¶
func UpdateUser(c *fiber.Ctx) error
UpdateUser updates a user's information HealthCheck godoc @Summary Update a user @Description Update user info @Tags user @Param username path string true "username" @Param data body UserUpdateRequest true "data" @Accept */* @Produce json @Success 200 {object} map[string]interface{} @Router /users [put]
Types ¶
This section is empty.