diff --git a/src/eventlog.js b/src/eventlog.js index ce939f641..c0cfd4301 100644 --- a/src/eventlog.js +++ b/src/eventlog.js @@ -16,6 +16,7 @@ exports = module.exports = { ACTION_APP_RESTORE: 'app.restore', ACTION_APP_UNINSTALL: 'app.uninstall', ACTION_APP_UPDATE: 'app.update', + ACTION_APP_LOGIN: 'app.login', ACTION_BACKUP_FINISH: 'backup.finish', ACTION_BACKUP_START: 'backup.start', ACTION_CERTIFICATE_RENEWAL: 'certificate.renew', diff --git a/src/ldap.js b/src/ldap.js index c2d31e269..de1937c25 100644 --- a/src/ldap.js +++ b/src/ldap.js @@ -293,7 +293,7 @@ function authenticateMailbox(req, res, next) { if (mailbox.ownerType === mailboxdb.TYPE_APP) { if (req.credentials !== mailbox.ownerId) return next(new ldap.NoSuchObjectError(req.dn.toString())); - eventlog.add(eventlog.ACTION_USER_LOGIN, { authType: 'ldap', mailboxId: name }, { appId: mailbox.ownerId }); + eventlog.add(eventlog.ACTION_APP_LOGIN, { authType: 'ldap', mailboxId: name }, { appId: mailbox.ownerId }); return res.end(); }