mirror of
https://wiilab.wiimart.org/wiimart/WiiSOAP
synced 2025-09-02 19:41:08 +02:00
Fix hashed token size
This commit is contained in:
parent
46015a563b
commit
932a600c33
6
route.go
6
route.go
@ -210,9 +210,9 @@ func determineTokenFormat(token string) (string, TokenType) {
|
||||
return token[3:24], TokenTypeUnhashed
|
||||
}
|
||||
case "WT-":
|
||||
// Hashed tokens are 45 characters in length.
|
||||
if tokenLen == 45 {
|
||||
return token[3:45], TokenTypeHashed
|
||||
// Hashed tokens are 35 characters in length.
|
||||
if tokenLen == 35 {
|
||||
return token[3:35], TokenTypeHashed
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user