I ran into a bit of a problem recently with the UserEngine and nested
controllers. The issue was that it got itself into an endless
redirection loop whenever it tried to take the user to the login screen
from a nested controller, it was trying to redirect to /admin/user/login
instead of /user/login.
To fix the issue I replaced the login redirect in authorized_system.rb
to the following:
redirect_to LoginSystem.config(:app_url) + “/user/login”
This fixed the issue but is there a better way to do this?