This commit is contained in:
gazebo
2019-03-11 15:39:24 +08:00
parent c8946137fd
commit 61fd3b5a90

View File

@@ -362,7 +362,7 @@ func GetTokenType(token string) (tokenType int) {
func IsV2Token(token string) bool {
tokenPartList := strings.Split(token, TokenTypeSep)
return tokenPartList[0] == TokenVer
return tokenPartList[1] == TokenVer
}
func GuessAuthTypeFromAuthID(authID string) (authType string) {