alhafoudh / node-red-contrib-mikrotik2

Node-red node to work with Mikrotik WiFi router
ISC License
5 stars 1 forks source link

After update RouterOS to 6.45.1 api login don't work any more #3

Closed portalek closed 3 years ago

portalek commented 5 years ago

Mikrotik changed login api, is it possible to update?

portalek commented 5 years ago

https://wiki.mikrotik.com/wiki/Manual:API#Initial_login

rmukhtarov commented 5 years ago

Hello. The same issue.

0nikola1 commented 5 years ago

https://github.com/niksy111/node-red-contrib-mikrotik3

rmukhtarov commented 5 years ago

Actually problem with not node-red-contrib-mikrotik. This node has dependency as mikronode-ng. For solving problem you can find /.node-red/nodemodules/mikronode-ng/lib/connection.js file and In connections.js - Connection.prototype.loginStateMachine(), around line 564, replace lc.write('/login'); (this).status = 'Waiting for challenge'; with lc.write('/login', { "=name" : (this).user, "=password" : (this).password }); _(this).status = 'Waiting for Response';

0nikola1 commented 5 years ago

I solved that problem with my mikronode-ng2 which i put on npm but still not on github