be less strict about username/password value checking

refs #165
fork
mscdex 12 years ago
parent 51a67955ac
commit e7cd3df5cd

@ -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 {

Loading…
Cancel
Save