diff --git a/lib/taskHandlers/authentication.js b/lib/taskHandlers/authentication.js
index <HASH>..<HASH> 100644
--- a/lib/taskHandlers/authentication.js
+++ b/lib/taskHandlers/authentication.js
@@ -52,14 +52,15 @@ class Authentication extends TaskHandlerBase {
     _baseLogin(args, cb) {
         const { auth } = configStore.getStoreDesc("_serverSettings").entries;
         const { findUser, checkPassword } = auth;
-        let { login, password, hashedPassword } = args;
+        const { login, password } = args;
+        let { hashedPassword } = args;
         const getUser = findUser ? findUser(this.db, args) : this.db.get("users", { $or: [{ login }, { email: login }] }, { returnNull: true });
         let user;
         return getUser
             .then(res => {
                 user = res;
                 if (!user || (!user.isActive && login !== "root")) {
-                    return cb(new UserError(i18n.get("_commonSettings.signIn.userNotFound")), null);
+                    throw new UserError(i18n.get("_commonSettings.signIn.userNotFound"));
                 }
 
                 if (checkPassword) {
aith fix when user not found error