Force newly registered users to be created under a reseller¶
In order to automatically assign the newly registered users to a certain reseller, you need to add the following
variable in the `/var/webapps/fleio/frontend/site/constants/constants.js`
file, in the var user_config brackets:
var user_config = {
...
reseller_client_id: XXXXX,
flavors_as_cards: true
...
}
The client ID can be obtained directly from the Fleio client dashboard, by accessing Clients & users -> Clients -> click on the reseller that you want to set and on overview you tab you will find “ID: xxxxx”.
The final step is to restart Fleio services (see Restarting Fleio).