You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, keeping everything REST-ful and since the scenario's of logging in from the backend or the frontend differ a lot, I'd rather be able to set the failure app to Backend::SessionsController.action(:new) for one scope, and Frontend::SessionsController.action(:new) for the other.
Is this possible, and if not, is there a reason for this, am I trying to solve this problem the wrong way?
The text was updated successfully, but these errors were encountered:
It should be possible, but the simplest way to solve this problem is setting the failure app to a FailureApp that will redirect to a controller and action according to the scope.
I figured I'd had to go this route, but it requires an extra redirect, so I was hoping to handle this from within Warden itself. Anyway, thank you for the quick solution, it works nicely, that's what counts.
I was wondering if it's possible to set the failure_app per scope.
This is my current setup:
However, keeping everything REST-ful and since the scenario's of logging in from the backend or the frontend differ a lot, I'd rather be able to set the failure app to
Backend::SessionsController.action(:new)
for one scope, andFrontend::SessionsController.action(:new)
for the other.Is this possible, and if not, is there a reason for this, am I trying to solve this problem the wrong way?
The text was updated successfully, but these errors were encountered: