From dadde96e41d96396369e39ff720a310166d7f145 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Fri, 15 May 2020 21:40:32 -0700 Subject: [PATCH] remove login events from addons more often then not this just spams the eventlog --- src/ldap.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/ldap.js b/src/ldap.js index 962e02717..4dae55791 100644 --- a/src/ldap.js +++ b/src/ldap.js @@ -618,10 +618,7 @@ function authenticateMailAddon(req, res, next) { // note: with sendmail addon, apps can send mail without a mailbox (unlike users) appdb.getAppIdByAddonConfigValue(addonId, namePattern, req.credentials || '', function (error, appId) { if (error && error.reason !== BoxError.NOT_FOUND) return next(new ldap.OperationsError(error.message)); - if (appId) { // matched app password - eventlog.add(eventlog.ACTION_APP_LOGIN, { authType: 'ldap', mailboxId: email }, { appId: appId, addonId: addonId }); - return res.end(); - } + if (appId) return res.end(); mailboxdb.getMailbox(parts[0], parts[1], function (error, mailbox) { if (error && error.reason === BoxError.NOT_FOUND) return next(new ldap.NoSuchObjectError(req.dn.toString()));