user

package
v0.0.0-...-f47b430 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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(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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL