Skip to content

Commit

Permalink
Merge pull request andris9#34 from dchurchv/AuthLoginFix
Browse files Browse the repository at this point in the history
Fix to support optional username passed to AUTH LOGIN command
  • Loading branch information
andris9 committed Jun 20, 2013
2 parents 6834b51 + 4558e4a commit 14bd919
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,12 @@ SMTPServerConnection.prototype._onCommandAUTH = function(payload){
this._handleAuthPlain(payload);
break;
case "LOGIN":
this._handleAuthLogin();
var username = payload.shift();
if (username) {
username = username.trim();
this.authentication.state = "AUTHENTICATING";
}
this._handleAuthLogin( username);
break;
}
};
Expand Down

0 comments on commit 14bd919

Please sign in to comment.