Skip to content

Commit

Permalink
Fix login locale
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesu committed Feb 21, 2010
1 parent d2887bf commit b0652a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/controllers/sessions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def create
new_cookie_flag = (params[:remember_me] == "1")
handle_remember_cookie! new_cookie_flag
redirect_back_or_default('/')
error_status(false, :login_success)
error_status(false, 'response.login_success')
else
note_failed_signin
@login = params[:email]
Expand All @@ -73,7 +73,7 @@ def create

def destroy
logout_killing_session!
error_status(false, :logout_success)
error_status(false, 'response.login_success')

respond_to do |f|
f.html {redirect_back_or_default('/')}
Expand All @@ -84,7 +84,7 @@ def destroy
protected
# Track failed login attempts
def note_failed_signin
error_status(true, :login_failure, {}, false)
error_status(true, 'response.login_failure', {}, false)
logger.warn "Failed login for '#{params[:email]}' from #{request.remote_ip} at #{Time.now.utc}"
end

Expand Down

0 comments on commit b0652a5

Please sign in to comment.