Skip to content
This repository has been archived by the owner on Feb 14, 2024. It is now read-only.

Commit

Permalink
🚸 Remove ambiguous chars from token character set
Browse files Browse the repository at this point in the history
  • Loading branch information
mraerino committed Jul 3, 2018
1 parent 79d4604 commit 51b3e82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/token.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func InitTokenHandler(router gin.IRouter, db *pg.DB) {
g.DELETE("/:username", h.deleteToken)
}

const characters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
const characters = "abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ123456789"
const charMask = 1<<6 - 1 // 64-bit mask

func randString(n int) string {
Expand Down

0 comments on commit 51b3e82

Please sign in to comment.