This commit is contained in:
gazebo
2019-03-05 10:27:38 +08:00
parent 273c50f6b7
commit 428af84d70

View File

@@ -123,8 +123,8 @@ func (ctx *Context) GetLoginInfo() IAuther {
}
func (ctx *Context) GetV2AuthInfo() (authInfo *auth2.AuthInfo, err error) {
globals.SugarLogger.Debugf("GetV2AuthInfo, authInfo:%s", utils.Format4Output(authInfo, false))
authInfo, ok := ctx.userInfo.(*auth2.AuthInfo)
globals.SugarLogger.Debugf("GetV2AuthInfo, authInfo:%s", utils.Format4Output(authInfo, false))
if ok {
return authInfo, nil
}