Skip to content

Commit

Permalink
added missing bad email or password translation in sessions controller
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Croak committed May 17, 2009
1 parent 86f83b8 commit c096f73
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/controllers/clearance/sessions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ def create
@user = ::User.authenticate(params[:session][:email],
params[:session][:password])
if @user.nil?
flash.now[:failure] = "Bad email or password."
flash.now[:failure] = translate(:bad_email_or_password,
:scope => [:clearance, :controllers, :sessions],
:default => "Bad email or password.")
render :template => 'sessions/new', :status => :unauthorized
else
if @user.email_confirmed?
Expand Down

0 comments on commit c096f73

Please sign in to comment.