Devise: Devise does not throw validation error during failed login

Created on 9 May 2010  ·  6Comments  ·  Source: heartcombo/devise

Even though an devise_error_messages! is already inserted in the login views, devise still does not throw validation error during failed login.

It would be great if this is built in from devise, rather than implemented by user.

Most helpful comment

Hello Developer,
I am using devise for authentication. When the user entered the wrong information in sign in form, it just refreshes the page instead of flashing error message. Please tell me which files need to change.

All 6 comments

Devise shows a flash message for invalid logins.
Please be sure you have the right flash messages in your layouts. Take a look at the README under the section "Configuring controllers".

Thanks for the assistance Carlos. Let me check again tonight. It seems I haven't modify the generated SessionsController. :-)

Ok case closed. Devise uses flash[:alert] when there is invalid login instead of model.error

Hello Developer,
I am using devise for authentication. When the user entered the wrong information in sign in form, it just refreshes the page instead of flashing error message. Please tell me which files need to change.

Same here, I got no message even I entered the wrong user name or password.

Same issue here, whats the solution to this ?

Was this page helpful?
0 / 5 - 0 ratings