Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AfterSignupEvent ¶
type ChangePassword ¶
type ChangePassword struct { Password string `json:"password"` // current password. NewPassword string `json:"new_password"` // new password. // contains filtered or unexported fields }
ChangePassword changes password.
func NewChangePassword ¶
func NewChangePassword(db *sqlex.DB, user *oldmodels.User) *ChangePassword
NewChangePassword returns a form to change password.
func (*ChangePassword) Handle ¶
func (f *ChangePassword) Handle(ctx *clevergo.Context) error
Handle handles request.
func (*ChangePassword) Validate ¶
func (f *ChangePassword) Validate() error
Validate validates form data.
type CheckUserEmail ¶
type CheckUserEmail struct { Email string `json:"email"` // contains filtered or unexported fields }
func NewCheckUserEmail ¶
func NewCheckUserEmail(db *sqlex.DB) *CheckUserEmail
func (*CheckUserEmail) Validate ¶
func (f *CheckUserEmail) Validate() error
type CheckUsername ¶
type CheckUsername struct { Username string `json:"username"` // contains filtered or unexported fields }
func NewCheckUsername ¶
func NewCheckUsername(db *sqlex.DB) *CheckUsername
func (*CheckUsername) Validate ¶
func (f *CheckUsername) Validate() error
type Contact ¶
type Login ¶
type Login struct { CaptchaID string `schema:"captcha_id" json:"captcha_id"` Captcha string `schema:"captcha" json:"captcha"` Email string `schema:"email" json:"email"` Password string `schema:"password" json:"password"` // contains filtered or unexported fields }
Login is a login form.
type RequestResetPassword ¶
type RequestResetPassword struct { Email string `json:"email"` Captcha string `json:"captcha"` CaptchaID string `json:"captcha_id"` // contains filtered or unexported fields }
func NewRequestResetPassword ¶
func (*RequestResetPassword) Handle ¶
func (f *RequestResetPassword) Handle(ctx *clevergo.Context) (err error)
func (*RequestResetPassword) Validate ¶
func (f *RequestResetPassword) Validate() error
type ResendVerificationEmail ¶
type ResendVerificationEmail struct { Email string `valid:"required,email" json:"email" xml:"email"` Captcha string `valid:"required" json:"captcha" xml:"captcha"` CaptchaID string `valid:"required" json:"captcha_id" xml:"captcha_id"` // contains filtered or unexported fields }
func (*ResendVerificationEmail) Handle ¶
func (f *ResendVerificationEmail) Handle(ctx *clevergo.Context) (err error)
func (*ResendVerificationEmail) Validate ¶
func (f *ResendVerificationEmail) Validate() error
type ResetPassword ¶
type ResetPassword struct { Token string `json:"token"` Password string `json:"password"` // contains filtered or unexported fields }
func NewResetPassword ¶
func NewResetPassword(db *sqlex.DB) *ResetPassword
func (*ResetPassword) Validate ¶
func (f *ResetPassword) Validate() error
type Signup ¶
type Signup struct { Email string `json:"email" xml:"email"` Username string `json:"username" xml:"username"` Password string `json:"password" xml:"password"` Captcha string `json:"captcha"` CaptchaID string `json:"captcha_id"` // contains filtered or unexported fields }
func (*Signup) RegisterOnAfterSignup ¶
func (su *Signup) RegisterOnAfterSignup(f func(AfterSignupEvent))
type VerifyEmail ¶
type VerifyEmail struct { Token string `json:"token"` // contains filtered or unexported fields }
func NewVerifyEmail ¶
func NewVerifyEmail(db *sqlex.DB) *VerifyEmail
func (*VerifyEmail) Validate ¶
func (f *VerifyEmail) Validate() error
Click to show internal directories.
Click to hide internal directories.