mirror of
https://github.com/pushbits/server.git
synced 2025-06-14 00:22:15 +02:00
Fix token lengths
This commit is contained in:
parent
0ee3f69d15
commit
47f10c03ae
2 changed files with 4 additions and 9 deletions
|
@ -53,5 +53,7 @@ func GenerateApplicationToken(compat bool) string {
|
|||
tokenLength = compatTokenLength
|
||||
}
|
||||
|
||||
tokenLength -= len(applicationTokenPrefix)
|
||||
|
||||
return applicationTokenPrefix + generateRandomString(tokenLength)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue