Skip to content
Snippets Groups Projects
Commit a25a8131 authored by deuce's avatar deuce
Browse files

Don't default the password to '-' when reading binkit.ini.

Treat a password of '-' the same as an undefined password in binkit.js.
parent 2b4e9b02
No related branches found
No related tags found
No related merge requests found
...@@ -195,7 +195,7 @@ function callout_auth_cb(mode, bp) ...@@ -195,7 +195,7 @@ function callout_auth_cb(mode, bp)
*/ */
var addrs = []; var addrs = [];
if (bp.cb_data.binkitpw === undefined) if (bp.cb_data.binkitpw === undefined || bp.cb_data.binkitpw === '-')
addrs.push(bp.binkit_to_addr); addrs.push(bp.binkit_to_addr);
else { else {
bp.remote_addrs.forEach(function(addr) { bp.remote_addrs.forEach(function(addr) {
......
...@@ -321,7 +321,7 @@ function BinkITCfg() ...@@ -321,7 +321,7 @@ function BinkITCfg()
var sec = section.toLowerCase(); var sec = section.toLowerCase();
this.node[sec] = {}; this.node[sec] = {};
this.node[sec].pass = f.iniGetValue(section, 'Password', '-'); this.node[sec].pass = f.iniGetValue(section, 'Password');
this.node[sec].nomd5 = f.iniGetValue(section, 'AllowPlainPassword'); this.node[sec].nomd5 = f.iniGetValue(section, 'AllowPlainPassword');
this.node[sec].port = f.iniGetValue(section, 'Port'); this.node[sec].port = f.iniGetValue(section, 'Port');
if (this.node[sec].nomd5 == undefined) if (this.node[sec].nomd5 == undefined)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment