- ErrAuthTypeAlreadyExist

This commit is contained in:
gazebo
2019-03-05 09:20:13 +08:00
parent 10218a6d52
commit dee5524331
4 changed files with 6 additions and 1 deletions

View File

@@ -37,7 +37,7 @@ func (a *Auther) VerifySecret(userID, passMD5 string) (authBind *model.AuthBind,
if authBind, err = dao.GetAuthBind(dao.GetDB(), "", AuthType, userID); err == nil {
err = a.checkPassword(authBind, passMD5)
} else if dao.IsNoRowsError(err) {
err = auth2.ErrUserNotExist
err = auth2.ErrUserAuthTypeNotExist
}
return authBind, err
}