Skip to content

Commit

Permalink
Ignore case for token
Browse files Browse the repository at this point in the history
  • Loading branch information
websterzh committed May 31, 2023
1 parent cdebfe3 commit 9331878
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gin/services/token.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ func HasToken(token string, airport string) bool {
}

func getTokenKey(token string) string {
return fmt.Sprint("token_", token)
return fmt.Sprint("token_", strings.ToLower(token))
}

0 comments on commit 9331878

Please sign in to comment.