0

After a failed login Devise seems to be calling the failure app in a new rack env and returning it's response which is typically the login page.

How do I add a middleware to devise failure app?

Favourite Onwuemene
  • 4,247
  • 8
  • 28
  • 46
  • What is it exactly that you are trying to accomplish? You can customize the failure app by `config.warden { |manager| manager.failure_app = CustomFailure }` - if you for example want your rails application routes to handle the error you can use `MyAppName::Application.routes`. – max Oct 17 '16 at 23:18
  • 1
    @max see here: http://stackoverflow.com/questions/40075966/apartment-current-tenant-resets-to-public-after-failed-devise-login – Favourite Onwuemene Oct 18 '16 at 00:43

0 Answers0