mirror of
https://github.com/nodemailer/wildduck.git
synced 2025-01-01 13:13:53 +08:00
Fixed POP3 invalid auth error
This commit is contained in:
parent
33287d57ed
commit
5d2e011437
1 changed files with 2 additions and 2 deletions
|
@ -855,7 +855,7 @@ class POP3Connection extends EventEmitter {
|
|||
return next(err);
|
||||
}
|
||||
|
||||
if (!response.user) {
|
||||
if (!response || !response.user) {
|
||||
this.logger.info(
|
||||
{
|
||||
tnx: 'authfail',
|
||||
|
@ -867,7 +867,7 @@ class POP3Connection extends EventEmitter {
|
|||
username,
|
||||
'PLAIN'
|
||||
);
|
||||
this.send('-ERR [AUTH] ' + (response.message || 'Username and password not accepted'));
|
||||
this.send('-ERR [AUTH] ' + ((response && response.message) || 'Username and password not accepted'));
|
||||
return next();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue