浏览代码

we don't accept empty token.

master
Patrick Peng Sun 8 年前
父节点
当前提交
97efca171e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      server.go

+ 1
- 1
server.go 查看文件

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

正在加载...
取消
保存