Skip to content

Token Event - Actions done by token correctly logged - #8181

Open
stephannn wants to merge 4 commits into
Ylianst:masterfrom
stephannn:tokenEvent
Open

stephannn wants to merge 4 commits into
Ylianst:masterfrom
stephannn:tokenEvent

Conversation

@stephannn

Copy link
Copy Markdown
Contributor

This PR goes back to this issue: #8047

Problem is, when using a token user, only the parent user is logged in the event, but not if maybe a script by a token was used.

I had to modify the webserver.js to check for a token user and then I added to each event in meshuser this code:

if(user._id === req.session.userid && req.session.tokenUser != null && req.session.tokenName != null) {
    event.tokenName = req.session.tokenName; event.tokenUser = req.session.tokenUser;
}

Kind of a copy and paste orgy. If preferred, I can also change it to a one liner.

I also changed two con to var events, so that I can modify the variables.

@si458

si458 commented Sep 27, 2026

Copy link
Copy Markdown
Collaborator

i started this but never uploaded as had to fix other stuff!
also need to fix your conflict too with the meshuser.js file

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants