Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChangePasswordHandler ¶
type ChangePasswordHandler struct {
// contains filtered or unexported fields
}
func NewChangePasswordHandler ¶
func NewChangePasswordHandler( ur *repositories.UserRepository, tr *repositories.TokensRepository, jwt *services.JWTAuthenticator, jwtConfig *configs.JWTConfig, ) *ChangePasswordHandler
func (*ChangePasswordHandler) Handle ¶
func (h *ChangePasswordHandler) Handle(ctx fiber.Ctx) error
Change password godoc
@Param Authorization header string true "123" @Param body body dtos.ChangePasswordRequestDto true "Body" @Summary Allow change authenticated user own password @Description Allow change authenticated user own password @Tags Auth Controller @Accept json @Produce json
@Success 200 {object} dtos.ChangePasswordRequestDto @Router /api/v1/auth/change-password [post]
Click to show internal directories.
Click to hide internal directories.