From f4954557b38b641c334cd907d65cc47aab21c925 Mon Sep 17 00:00:00 2001 From: Alexander Machehin Date: Wed, 29 Feb 2012 12:51:10 +0600 Subject: [PATCH] [refs #228] fix showing error --- app/views/devise/sessions/new.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/devise/sessions/new.html.haml b/app/views/devise/sessions/new.html.haml index 5aebcb2d7..985798573 100644 --- a/app/views/devise/sessions/new.html.haml +++ b/app/views/devise/sessions/new.html.haml @@ -7,7 +7,7 @@ .logo / Page %article - - is_error = flash.try(:first).try(:first) == :alert # Trash + - is_error = (flash.try(:first).try(:first) == :alert && flash.try(:first).try(:last) == t('devise.failure.invalid')) # Trash - login = t('devise.sessions.login'); password = t('devise.sessions.password') =hidden_field_tag :login_default, login =hidden_field_tag :password_default, password