Amend app object where applicable to login event

This commit is contained in:
Johannes Zellner
2018-03-02 19:06:27 +01:00
parent 39d6ec96b7
commit 726202b040
2 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -410,7 +410,7 @@ function authorizeUserForApp(req, res, next) {
// we return no such object, to avoid leakage of a users existence
if (!result) return next(new ldap.NoSuchObjectError(req.dn.toString()));
eventlog.add(eventlog.ACTION_USER_LOGIN, { authType: 'ldap', appId: app.id }, { userId: req.user.id, user: user.removePrivateFields(req.user) });
eventlog.add(eventlog.ACTION_USER_LOGIN, { authType: 'ldap', appId: app.id, app: app }, { userId: req.user.id, user: user.removePrivateFields(req.user) });
res.end();
});