Commit f9e3375a authored by deuce's avatar deuce
Browse files

Remove magical return type of auth callback.

parent 36cfea3e
......@@ -567,10 +567,6 @@ BinkP.prototype.accept = function(sock, auth_cb)
this.sendCmd(this.command.M_ERR, "Encryption requires CRAM-MD5 auth");
}
pwd = auth_cb(args, this);
if (pwd === false) {
this.sendCmd(this.command.M_ERR, "Password mismatch");
break;
}
if (pwd === undefined)
pwd = '-';
if (pwd === '-') {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment