mirror of
https://github.com/heartcombo/devise.git
synced 2026-01-23 05:38:04 -05:00
Updating views and helpers to use i18n by default.
This commit is contained in:
@@ -32,7 +32,7 @@ Warden::Strategies.add(:devise) do
|
||||
if user = User.authenticate(params[:session][:email], params[:session][:password])
|
||||
success!(user)
|
||||
else
|
||||
fail!(I18n.t(:authentication_failed, :scope => [:devise, :session], :default => 'Invalid email or password'))
|
||||
fail!(I18n.t(:authentication_failed, :scope => [:devise, :sessions], :default => 'Invalid email or password'))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user