From a01e7686ea7c046a9cd544b618b30727f2a41b3b Mon Sep 17 00:00:00 2001 From: jessib Date: Thu, 27 Jun 2013 12:31:39 -0700 Subject: Want to tweak some, but start to displaying base generic message via javascript. --- users/app/controllers/controller_extension/authentication.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'users/app/controllers/controller_extension/authentication.rb') diff --git a/users/app/controllers/controller_extension/authentication.rb b/users/app/controllers/controller_extension/authentication.rb index f0a6564..0dca29c 100644 --- a/users/app/controllers/controller_extension/authentication.rb +++ b/users/app/controllers/controller_extension/authentication.rb @@ -10,6 +10,7 @@ module ControllerExtension::Authentication def authentication_errors return unless attempted_login? errors = get_warden_errors + #default response to get_warden_errors is not an enumerable, so won't work if default is used errors.inject({}) do |translated,err| translated[err.first] = I18n.t(err.last) translated -- cgit v1.2.3