From 2ab3cd582c3a352f66748d9125afaffc99ad2518 Mon Sep 17 00:00:00 2001 From: pbca26 Date: Tue, 10 Apr 2018 02:12:49 +0300 Subject: [PATCH] seed storage token fix --- routes/shepherd/pin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/shepherd/pin.js b/routes/shepherd/pin.js index 6af5bf4..1a17e6e 100644 --- a/routes/shepherd/pin.js +++ b/routes/shepherd/pin.js @@ -146,7 +146,7 @@ module.exports = (shepherd) => { }); shepherd.get('/getpinlist', (req, res, next) => { - if (shepherd.checkToken(req.body.token)) { + if (shepherd.checkToken(req.query.token)) { if (fs.existsSync(`${shepherd.agamaDir}/shepherd/pin`)) { fs.readdir(`${shepherd.agamaDir}/shepherd/pin`, (err, items) => { let _pins = [];