Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Devise does not throw validation error during failed login #259

Closed
jpartogi opened this issue May 9, 2010 · 6 comments
Closed

Devise does not throw validation error during failed login #259

jpartogi opened this issue May 9, 2010 · 6 comments

Comments

@jpartogi
Copy link

jpartogi commented May 9, 2010

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.

@carlosantoniodasilva
Copy link
Member

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".

@jpartogi
Copy link
Author

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

@jpartogi
Copy link
Author

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

@Rupinderwadali
Copy link

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.

@n5ken
Copy link

n5ken commented Feb 14, 2017

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

@Herz3h
Copy link

Herz3h commented Jul 27, 2017

Same issue here, whats the solution to this ?

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

5 participants