Services Plugins FAQs

Login popup when clicked outside

Hi, for my login popup I have set up that if ‘x’ is clicked it closes and goes to homepage. But I realised that if the user clicks outside of the popup the popup closes but stays on the current page. I need some of the pages unaccessible without login - how do I make the page to change to homepage if the user clicks outside of the popup?
Thanks in advance. Sasha

there is an event called “when popup is closed”, you can use that to navigate the user to homepage.
But best practice is to not let the user to the page without logging in.
We usually set a workflow on such pages that if the user is not logged in then navigate to login/signup page