- user2
This commit is contained in:
@@ -64,7 +64,7 @@ func New(rootTask tasksch.ITask, token string, w http.ResponseWriter, r *http.Re
|
||||
accessUUID: utils.GetUUID(),
|
||||
}
|
||||
if auth2.IsV2Token(token) {
|
||||
authInfo, err2 := auth2.GetUserInfo(token)
|
||||
authInfo, err2 := auth2.GetTokenInfo(token)
|
||||
if err = err2; err == nil {
|
||||
ctx.userInfo = authInfo
|
||||
if authInfo.TokenType != auth2.TokenTypeNormal {
|
||||
|
||||
Reference in New Issue
Block a user