mirror of
https://github.com/nodemailer/wildduck.git
synced 2025-01-01 13:13:53 +08:00
Fixed issues with invalid logins
This commit is contained in:
parent
d31f261918
commit
dbdbde8d7a
1 changed files with 1 additions and 1 deletions
2
imap.js
2
imap.js
|
@ -32,7 +32,7 @@ let database;
|
|||
|
||||
|
||||
server.onAuth = function (login, session, callback) {
|
||||
let username = (login.username || '').toString().replace(/\./g, '').trim();
|
||||
let username = (login.username || '').toString().trim();
|
||||
|
||||
database.collection('users').findOne({
|
||||
username
|
||||
|
|
Loading…
Reference in a new issue