Explorar el Código

we don't accept empty token.

master
Patrick Peng Sun hace 8 años
padre
commit
97efca171e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      server.go

+ 1
- 1
server.go Ver fichero

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

Cargando…
Cancelar
Guardar