I have a custom category attribute called passcode and it is unique for every category. (with the help of this tutorial
When a customer logins (there is an addition field in the login.phtml for the passcode which will be stored in a session variable), magento will only display that specific category which has the entered passcode.
I have already created a custom field in the login.phtml and hooks it to customer login action (here is the link) how can I redirect customer to that specific category only which has the same passcode with the customer entered one?
The customer will only see the entered passcode category and its products, and not be able to see any other category and products.