Pārlūkot izejas kodu

we don't accept empty token.

master
Patrick Peng Sun pirms 8 gadiem
vecāks
revīzija
97efca171e
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      server.go

+ 1
- 1
server.go Parādīt failu

@@ -167,7 +167,7 @@ func checkCookieSignatureBytoken(r *http.Request, token string) bool {
timestamp = c.Value
}
}
if signature != "" && nonce != "" && timestamp != "" {
if signature != "" && nonce != "" && timestamp != "" && token != "" {
return verifySignature(signature, timestamp, nonce, IntraAPIConfig.CRMSecrete)
}
return false

Notiek ielāde…
Atcelt
Saglabāt