This repository has been archived on 2024-10-02. You can view files and clone it, but cannot push or open issues or pull requests.
smart-tag/methods/logIn.js

16 lines
468 B
JavaScript

module.exports = (async() => {
const config = require('../config');
const encrypt = require('../utilities/encrypted');
const got = require('got');
const {body} = await got.post('http://app.etiquetaselectronicas.com:9999/user/login', {
json: {
account: config.user,
loginType: 3,
password: await encrypt.encryptPassword(config.password)
},
responseType: 'json'
});
return body;
})();