From e7cd3df5cdbcfb3ba7511660b4a7dcdf864975ed Mon Sep 17 00:00:00 2001 From: mscdex Date: Tue, 5 Feb 2013 17:00:41 -0500 Subject: [PATCH] be less strict about username/password value checking refs #165 --- lib/imap.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/imap.js b/lib/imap.js index b8ebe20..be6f87e 100644 --- a/lib/imap.js +++ b/lib/imap.js @@ -1443,8 +1443,7 @@ ImapConnection.prototype._login = function(cb) { } else if (this._serverSupports('AUTH=XOAUTH2') && this._options.xoauth2) { this._send('AUTHENTICATE XOAUTH2 ' + utils.escape(this._options.xoauth2), fnReturn); - } else if (this._options.username !== undefined - && this._options.password !== undefined) { + } else if (this._options.username && this._options.password) { this._send('LOGIN "' + utils.escape(this._options.username) + '" "' + utils.escape(this._options.password) + '"', fnReturn); } else {