Permalink
Browse files

fixed bug not choosing really the best auth mech :)

  • Loading branch information...
1 parent 7eb9f22 commit c601e0338659547306c72b1f37823de7edb7eddc @dresende committed Apr 17, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/smtp.js
View
@@ -54,6 +54,7 @@ Client.prototype.authenticate = function (username, password, method) {
for (var i = 0; i < this._auth_supported.length; i++) {
if (this._auth_mechs.indexOf(this._auth_supported[i]) != -1) {
method = this._auth_supported[i];
+ break;
}
}
if (typeof method == "undefined") {

0 comments on commit c601e03

Please sign in to comment.