Skip to content

Commit

Permalink
update utils
Browse files Browse the repository at this point in the history
  • Loading branch information
IoTServ committed Jan 8, 2021
1 parent 4044fc8 commit a4a04d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion session/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func checkOpenIoTHubToken(key, tokenStr, id string) (token *models.TokenClaims,
return
}
if !token.IfContainPermission(models.PermissionOpenIoTHubLogin) {
log.Printf("token type err ,%d not 2(OpenIoTHub)", token.Permission)
log.Printf("token type err ,%+v not 2(OpenIoTHub)", token.Permission)
return nil, errors.New("not gateway token")
}
if token.RunId != id {
Expand Down

0 comments on commit a4a04d4

Please sign in to comment.