How to email the id or username of the user when they log in

I’m building an admin area and it’s going really well. I’m using the Security Enforcer for it (of course!) and have created a server action to send me an email when someone logs in and that works fine.

But I really want the email to contain the id or username of who has just logged in but I’m just not having any success.

In the login server action I have…

and I’ve added ''set value" and given it a value of {{siteSecurity.identity}}

Then, in the server action which sends the email, I’ve tried inserting a global variable of all types but it’s not inserting anything.

When using the ‘Set Value’ server action, how is that stored? Is it a session variable?

Cheers, Jon.

Community Page
Last updated: