From dbdbde8d7a14d1eee64584f6d448180066fda376 Mon Sep 17 00:00:00 2001 From: Andris Reinman Date: Sat, 11 Mar 2017 17:34:28 +0200 Subject: [PATCH] Fixed issues with invalid logins --- imap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imap.js b/imap.js index deac960e..60920210 100644 --- a/imap.js +++ b/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