Multiple login

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
11 年 前
Hello everyone.
How to prevent multiple users login to one account?
11 年 前
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.