mirror of https://github.com/ouqiang/gocron
API签名验证是否启用key,由app.sign.enable改为api.sign.enable
parent
2f5fff47d8
commit
ed521f519b
|
@ -229,7 +229,7 @@ func setShareData(ctx *macaron.Context, sess session.Store) {
|
|||
|
||||
/** API接口签名验证 **/
|
||||
func apiAuth(ctx *macaron.Context) {
|
||||
apiSignEnable := app.Setting.Key("app.sign.enable").String()
|
||||
apiSignEnable := app.Setting.Key("api.sign.enable").String()
|
||||
apiSignEnable = strings.TrimSpace(apiSignEnable)
|
||||
if apiSignEnable == "false" {
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue