This commit is contained in:
gazebo
2019-03-03 22:20:07 +08:00
parent af38ab535b
commit 6793e7443d
16 changed files with 330 additions and 59 deletions

View File

@@ -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 {