user

package
v0.0.0-...-e282ec7 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EditUser

func EditUser(c *context.APIContext)

func EditUserPassword

func EditUserPassword(c *context.APIContext)

func GetAuthenticatedUser

func GetAuthenticatedUser(ctx *context.APIContext)

func GetUserAvatar

func GetUserAvatar(c *context.APIContext)

func GetUserInformation

func GetUserInformation(c *context.APIContext)

func RequestActiveEmail

func RequestActiveEmail(c *context.APIContext)

func RequestResetPwdCode

func RequestResetPwdCode(c *context.APIContext)

func ResetPasswordPost

func ResetPasswordPost(c *context.APIContext)
func Search(ctx *context.APIContext)

func SignInPost

func SignInPost(c *context.APIContext)

func SignUpPost

func SignUpPost(c *context.APIContext)

func UpdateAvatar

func UpdateAvatar(c *context.APIContext)

Types

type EditUserOption

type EditUserOption struct {
	Nickname *string `json:"nickname" form:"nickname" binding:"omitempty,nickname"`
}

type EditUserPasswordForm

type EditUserPasswordForm struct {
	OldPassword string `json:"old_password" form:"old_password" binding:"required,password"`
	NewPassword string `json:"new_password" form:"new_password" binding:"required,password"`
}

type RequestResetPwdCodeForm

type RequestResetPwdCodeForm struct {
	Email string `json:"email" form:"email" binding:"required,email"`
}

type ResetPwdCodeForm

type ResetPwdCodeForm struct {
	Email    string `json:"email" form:"email" binding:"required,email"`
	Code     string `json:"code" form:"code" binding:"required"`
	Password string `json:"password" form:"password" binding:"required,password"`
}

Jump to

Keyboard shortcuts

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