security

package
v0.0.62 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

Types

type RegisterForm

type RegisterForm struct {
	Mode       string `json:"mode" form:"mode"`
	Username   string `json:"username" form:"username"`
	Password   string `json:"password" form:"password"`
	Password2  string `json:"password2,omitempty" form:"password2"`
	InviteCode string `json:"invite_code" form:"invite_code"`
}

type SecurityController

type SecurityController struct {
	controller.ResourceController
	MobileValidator   *SmsCode.SmsCodeValidator     `inject:"smsCodeValidator"`
	EmailValidator    *EmailCode.EmailCodeValidator `inject:"emailCodeValidator"`
	UserService       service.UserService           `inject:"commonUserService"`
	InviteCodeService service.InviteCodeService     `inject:"commonInviteCodeService"`
}

func (*SecurityController) ChangeRegister

func (o *SecurityController) ChangeRegister(c *gin.Context)

*

  • PUT /register

func (*SecurityController) InitRouter

func (c *SecurityController) InitRouter(g *gin.RouterGroup) *gin.RouterGroup

func (*SecurityController) Register

func (u *SecurityController) Register(c *gin.Context)

@Summary 注册新用户 (由用户主动发起) @Router /register [POST]

Jump to

Keyboard shortcuts

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