From 8f62f620d3925dd55a28c6c7f00513b298f2dff2 Mon Sep 17 00:00:00 2001 From: Andris Reinman Date: Thu, 28 Dec 2017 10:28:50 +0200 Subject: [PATCH] v1.0.103 --- lib/user-handler.js | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/user-handler.js b/lib/user-handler.js index efd8225b..8850da64 100644 --- a/lib/user-handler.js +++ b/lib/user-handler.js @@ -195,9 +195,9 @@ class UserHandler { let checkAddress = next => { if (ObjectID.isValid(username)) { - return { + return next(null, { _id: username - }; + }); } if (username.indexOf('@') < 0) { diff --git a/package.json b/package.json index 79c37958..a015410e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "wildduck", - "version": "1.0.102", + "version": "1.0.103", "description": "IMAP server built with Node.js and MongoDB", "main": "server.js", "scripts": {