Prevent concurrent users login with the same account

Topics: Customizing Orchard, General
Nov 29, 2013 at 9:07 AM
It is possible in Orchard to prevent users to login with the same account at the same time?

Daniele
Developer
Nov 29, 2013 at 9:45 AM
Yes, but you have to find a way how to tell that two clients apart. You can implement IUserEventHandler and use LoggedIn() for example. This is called after the users posts the login form and is signed in. If you decide not to let the user in you can log him out in your implementation. Another way would be to do the same from an action filter targeted on the AccountController.LogOn action.
Nov 29, 2013 at 9:54 AM
Great! I'll try as soon as possible!

Thanks!