This project is read-only.

How to Determine when an Orchard Event has Fired

Topics: Customizing Orchard
Nov 4, 2014 at 4:16 PM
I'm trying to build a custom workflow activity that can start a workflow when a user logs into the website but can't figure out how to determine when a user has actually logged in. I know the LoggedIn event gets fired when a user has successfully logged in but I can't figure out how to determine whether or not this event has fired so my workflow activity can start running. I'm also confused as to whether I should check if a user has logged in in the Execute function or the CanExecute function. Any help would be greatly appreciated. Thank you.
Nov 4, 2014 at 7:26 PM
Edited Nov 4, 2014 at 7:27 PM
I had to create my own UserLoggedIn Event and you can find it here: . The Code should work, but if there is any bug please report it on github.

For redirection after login you should be able to use this easy workflow:

The config for the InRole Activity:


If you have more questions - feel free to ask.
Nov 4, 2014 at 8:04 PM
Awesome, thank you so much for all of your help.