Multiple login

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Il y a 11 ans
Hello everyone.
How to prevent multiple users login to one account?
Il y a 11 ans
you can change the code in customer controller login action method
by checking whether the customer is already logged in by using

var loggedincustomer=_authenticationService.GetAuthenticatedCustomer();
if(loggedincustomer==null || loggedincustomer.Email!=model.Email)
_authenticationService.SignIn(customer, model.RememberMe);
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.