1
0
mirror of https://github.com/pocket-id/pocket-id.git synced 2026-02-15 02:20:10 +00:00

fix: remove ambiguous characters from login code

This commit is contained in:
Elias Schneider
2026-01-02 15:48:46 +01:00
parent b19d901618
commit d9e7bf9eef
7 changed files with 90 additions and 13 deletions

View File

@@ -876,7 +876,7 @@ func NewOneTimeAccessToken(userID string, ttl time.Duration, withDeviceToken boo
tokenLength = 6
}
token, err := utils.GenerateRandomAlphanumericString(tokenLength)
token, err := utils.GenerateRandomUnambiguousString(tokenLength)
if err != nil {
return nil, err
}