Project: THR-436
Requirement
Need to work out how to make it so that one login can only be used for one region, therefore so currency & range changes does not confuse the customer if they log into wrong region.
customize the login of website so that the customers can login only to their assigned website.
That is, if the subsidiary is US, we can restrict the customers to login to AU and NZ websites.
We can also display a message that they are on wrong domain and need to login to their corresponding domain by giving the URL.

Our Solution
- We can achieve this requirement for three domains in the thermogard website.
- We will create a new extension in the checkout for each domain.
- Whenever a customer is login to the website, we will get the customer email and the domain he is logging in.
- We will find the exact subsidiary of the customer, using the email id of the logged in customer.
- If the customer doesn’t register for the logged in website, then we will restrict the customer from logging in and shows a message “You do not have access to this website. Please login to www.xxx.com website to purchase. Thank you”. The message will be displayed on the website as given below.

- If the subsidiary matches, then we will allow the customer to login to the website.
- We will use configuration field to show the error message “You do not have access to this website” based on the subsidiary of the customer login. The domain name will be hardcoded.