Sfoglia il codice sorgente

we don't accept empty token.

master
Patrick Peng Sun 8 anni fa
parent
commit
97efca171e
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      server.go

+ 1
- 1
server.go Vedi File

@@ -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

Loading…
Annulla
Salva