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

Remove magical return type of auth callback.

parent 36cfea3e
Branches
Tags
No related merge requests found
......@@ -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 === '-') {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment