This commit is contained in:
richboo111
2022-08-11 15:15:05 +08:00
parent f15b85bbe7
commit 3b0c5e6895
2 changed files with 1 additions and 2 deletions

View File

@@ -83,7 +83,7 @@ type IAuther interface {
SendVerifyCode(authID string) (verifyCode string, err error) SendVerifyCode(authID string) (verifyCode string, err error)
// 负责验证secret并找到相应的用户返回password,email,mobile类型的不负责用户查找如果找不到用户UserID为空 // 负责验证secret并找到相应的用户返回password,email,mobile类型的不负责用户查找如果找不到用户UserID为空
VerifySecret(authID, authSecret string) (authBindEx *AuthBindEx, err error) VerifySecret(authID, authSecret string) (authBindEx *AuthBindEx, err error)
pay(authBindEx *AuthBindEx, userName string) (err error) AddAuthBind(authBindEx *AuthBindEx, userName string) (err error)
UnbindAuth(userID, authType, authTypeID, userName string) (err error) UnbindAuth(userID, authType, authTypeID, userName string) (err error)
Logout(authInfo *AuthInfo) (err error) Logout(authInfo *AuthInfo) (err error)
GetUserType() (userType int8) GetUserType() (userType int8)

View File

@@ -99,7 +99,6 @@ func (a *DefAuther) UnionFindAuthBind(curAuthType, curAuthTypeID string, unionAu
} }
a.UnbindAuth(authBind.UserID, curAuthType, curAuthTypeID, model.AdminName) a.UnbindAuth(authBind.UserID, curAuthType, curAuthTypeID, model.AdminName)
err = a.AddAuthBind(authBindEx, model.AdminName) // 自动绑定 err = a.AddAuthBind(authBindEx, model.AdminName) // 自动绑定
globals.SugarLogger.Debug("authBindEx AddAuthBind err============", authBindEx, err)
} else if dao.IsNoRowsError(err) { } else if dao.IsNoRowsError(err) {
err = nil err = nil
} }