Browse Source

seed storage token fix

pkg_automation_electrum
pbca26 7 years ago
parent
commit
2ab3cd582c
  1. 2
      routes/shepherd/pin.js

2
routes/shepherd/pin.js

@ -146,7 +146,7 @@ module.exports = (shepherd) => {
}); });
shepherd.get('/getpinlist', (req, res, next) => { 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`)) { if (fs.existsSync(`${shepherd.agamaDir}/shepherd/pin`)) {
fs.readdir(`${shepherd.agamaDir}/shepherd/pin`, (err, items) => { fs.readdir(`${shepherd.agamaDir}/shepherd/pin`, (err, items) => {
let _pins = []; let _pins = [];

Loading…
Cancel
Save