feat:完善信息
This commit is contained in:
@ -33,10 +33,12 @@ func (c *RegisterParams) checkUserExist(mUserInstance *model2.UserInstance) (boo
|
||||
}
|
||||
return count > 0, nil
|
||||
}
|
||||
|
||||
func (c *RegisterParams) checkCaptcha() (bool, error) {
|
||||
return handle.NewCaptcha().Validate(&handle.CaptchaSms{Captcha: c.Captcha, Mobile: c.Mobile})
|
||||
}
|
||||
|
||||
// Launch 发起注册
|
||||
func (c *Register) Launch(params *RegisterParams) (*InstanceLoginReturn, error) {
|
||||
if params.checkPassword() {
|
||||
return nil, errors.New("两次密码不一致")
|
||||
|
Reference in New Issue
Block a user