mirror of
https://wiilab.wiimart.org/wiimart/WiiSOAP
synced 2025-09-03 20:11:14 +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
|
return token[3:24], TokenTypeUnhashed
|
||||||
}
|
}
|
||||||
case "WT-":
|
case "WT-":
|
||||||
// Hashed tokens are 45 characters in length.
|
// Hashed tokens are 35 characters in length.
|
||||||
if tokenLen == 45 {
|
if tokenLen == 35 {
|
||||||
return token[3:45], TokenTypeHashed
|
return token[3:35], TokenTypeHashed
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user