Fix token lengths

This commit is contained in:
eikendev 2022-02-11 23:48:08 +01:00
parent 0ee3f69d15
commit 47f10c03ae
No known key found for this signature in database
GPG key ID: A1BDB1B28C8EF694
2 changed files with 4 additions and 9 deletions

View file

@ -53,5 +53,7 @@ func GenerateApplicationToken(compat bool) string {
tokenLength = compatTokenLength
}
tokenLength -= len(applicationTokenPrefix)
return applicationTokenPrefix + generateRandomString(tokenLength)
}