Parcourir la source

we don't accept empty token.

master
Patrick Peng Sun il y a 8 ans
Parent
révision
97efca171e
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. +1
    -1
      server.go

+ 1
- 1
server.go Voir le fichier

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

Chargement…
Annuler
Enregistrer