- fullfill ChangePassword

This commit is contained in:
gazebo
2019-03-04 11:39:11 +08:00
parent b57e698df8
commit dce28f4aa0
2 changed files with 11 additions and 1 deletions

View File

@@ -20,12 +20,17 @@ type Auther struct {
authprovider.DefAuther
}
var (
AutherObj *Auther
)
var (
ErrUserAndPassNotMatch = errors.New("用户名密码不匹配")
)
func init() {
auth2.RegisterAuther(AuthType, new(Auther))
AutherObj = new(Auther)
auth2.RegisterAuther(AuthType, AutherObj)
}
func (a *Auther) VerifySecret(userID, passMD5 string) (authBind *model.AuthBind, err error) {