Restrict user login based on channel/country

There are two channels in my site - se & no. And users can sign up using username & password. I want to restrict user(s) to login only to their country specific site

For example. If a user sign up in www.example.no, he can login only to www.example.no (and not in www.example.se)

In Login service, i can see only these two methods to login.

public  bool Login(string loginName, string password);
public  bool Login(string loginName, string password, out SecurityToken token);

Is there any way to check country too ?

Hi,

If you have the country information of the logged in user than you can check this in the login method. After you get the token you can get the person and its country information. If the country is not the same as the current channel country you logout the user and return false.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.