1

I'd like to override the way Devise currently handle the login flow. I don't need/want /users/sign_in, I just want to use my own root_path for login handling, i.e. logging user in and handling failed password entries.

I have successfully created the form which logs in, but if an user fails to put his/her password correctly, he/she being redirected to /users/sign_in. How to make sure I keep on the same action and handle failed passwords?

Pedro Nascimento
  • 13,136
  • 4
  • 36
  • 64
  • probably this is the answer you are looking for: http://stackoverflow.com/questions/5832631/devise-redirect-after-login-fail – choise Dec 23 '11 at 22:45

1 Answers1

0

This is probably what you're looking for: https://github.com/plataformatec/devise/wiki/How-To:-Change-the-default-sign_in-and-sign_out-routes

Sergio Tulentsev
  • 226,338
  • 43
  • 373
  • 367