diff --git a/back/methods/osticket/closeTicket.js b/back/methods/osticket/closeTicket.js index 19c9aff19..d742a265f 100644 --- a/back/methods/osticket/closeTicket.js +++ b/back/methods/osticket/closeTicket.js @@ -11,7 +11,7 @@ module.exports = Self => { }, http: { path: `/closeTicket`, - verb: 'GET' + verb: 'POST' } }); @@ -19,6 +19,9 @@ module.exports = Self => { const models = Self.app.models; const config = await models.OsTicketConfig.findOne(); + if (!config.user || !config.password) + return false; + const ostUri = `${config.host}/login.php`; const con = mysql.createConnection({