1
This commit is contained in:
@@ -120,7 +120,10 @@ func (a *DefAuther) UnionFindAuthBind(curAuthType, curAuthTypeID string, unionAu
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
globals.SugarLogger.Debugf("authBindList err=%v", err)
|
globals.SugarLogger.Debugf("authBindList err=%v", err)
|
||||||
if err == nil && authBindEx == nil { //如果没有报错,且没有找到一个认证方式,创建无用户(UserID为空)的认证方式
|
globals.SugarLogger.Debugf("authBindList authBindEx=%v", err)
|
||||||
|
if err == nil && authBindEx == nil {
|
||||||
|
//如果没有报错,且没有找到一个认证方式,创建无用户(UserID为空)的认证方式
|
||||||
|
globals.SugarLogger.Debugf("进入添加无用户认证方式")
|
||||||
authBindEx = &auth2.AuthBindEx{
|
authBindEx = &auth2.AuthBindEx{
|
||||||
AuthBind: model.AuthBind{
|
AuthBind: model.AuthBind{
|
||||||
Type: curAuthType,
|
Type: curAuthType,
|
||||||
@@ -132,6 +135,8 @@ func (a *DefAuther) UnionFindAuthBind(curAuthType, curAuthTypeID string, unionAu
|
|||||||
if authDetail != nil {
|
if authDetail != nil {
|
||||||
authBindEx.DetailData = string(utils.MustMarshal(authDetail))
|
authBindEx.DetailData = string(utils.MustMarshal(authDetail))
|
||||||
}
|
}
|
||||||
|
globals.SugarLogger.Debugf("authBindEx=%s", utils.Format4Output(authBindEx, false))
|
||||||
|
|
||||||
}
|
}
|
||||||
return authBindEx, err
|
return authBindEx, err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user