-
- 181 Posts
Is there a way to redirect users to the login page if they are not logged in?
For example Page A is the login page. Page B is a secure page.
If the user wants to visit page B but hasn’t logged in yet, modx will redirect him to Page A.
Right now if you try and visit Page B I receive this error
Fatal error: Call to a member function getMany() on a non-object in /home/outdoor4/public_html/core/cache/elements/modplugin/7.include.cache.php on line 21
-
- 128 Posts
I believe that you can solved this problem by placing the Login snippet on your Error page. The error page is the referenced in your system settings tab, so attempts ot access protected resources are redirected the error page, and the user is presented with a login.
Hope this helps.
Revo 2.0.8-pl