Include full user object on login audit events

This commit is contained in:
Nick O'Leary
2021-11-22 19:58:48 +00:00
parent 3e0f080ea7
commit 96840ede56
2 changed files with 2 additions and 2 deletions

View File

@@ -93,7 +93,7 @@ var passwordTokenExchange = function(client, username, password, scope, done) {
return logEntry.user !== username;
});
Tokens.create(username,client.id,scope).then(function(tokens) {
log.audit({event: "auth.login",username:username,client:client.id,scope:scope});
log.audit({event: "auth.login",user,username:username,client:client.id,scope:scope});
done(null,tokens.accessToken,null,{expires_in:tokens.expires_in});
});
} else {