test登录
This commit is contained in:
@@ -271,6 +271,7 @@ func LoginInternal(ctx *Context, authType, authID, authIDType, authSecret string
|
||||
user = userProvider.GetUser(authBindEx.UserID, UserIDID)
|
||||
}
|
||||
}
|
||||
fmt.Println("test2222222222222222222222222222222", utils.Format4Output(user, false))
|
||||
authInfo = createAuthInfo(user, authBindEx)
|
||||
if user != nil && user.GetID() != "" {
|
||||
userProvider.UpdateLastLogin(user.GetID(), authType, ctx.GetRealRemoteIP())
|
||||
@@ -296,7 +297,6 @@ func LoginInternal(ctx *Context, authType, authID, authIDType, authSecret string
|
||||
} else {
|
||||
err = ErrIllegalAuthType
|
||||
}
|
||||
fmt.Println("testaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", utils.Format4Output(authInfo, false))
|
||||
return authInfo, err
|
||||
}
|
||||
|
||||
@@ -401,6 +401,7 @@ func createToken(user IUser, authBindInfo *AuthBindEx) (token string, tokenType
|
||||
userID := TokenUserEmpty
|
||||
userName := authBindInfo.AuthID
|
||||
tokenType = TokenTypeOnlyAuth
|
||||
fmt.Println("test111111111111111111111", utils.Format4Output(user, false))
|
||||
if user != nil {
|
||||
userID = user.GetID()
|
||||
userName = "[" + user.GetID2() + "]"
|
||||
|
||||
Reference in New Issue
Block a user