Skip to content

Commit

Permalink
:)
Browse files Browse the repository at this point in the history
  • Loading branch information
tpinto committed Jul 3, 2008
1 parent f6ee78f commit 4f1b0a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/controllers/application.rb
Expand Up @@ -26,6 +26,7 @@ class ApplicationController < ActionController::Base
'ActionController::RoutingError' => 404,
'ActionController::UnknownAction' => 404,
'ActiveRecord::RecordNotFound' => 404,
'CGI::Session::CookieStore::TamperedWithCookie' => 423,
'ActionController::InvalidAuthenticityToken' => 422
}

Expand All @@ -45,6 +46,7 @@ def log_error(e)
def rescue_action(e)
log_error(e)
status_code = $RESCUE_RESPONSE_CODES[e.class.name]
redirect_to "/logout" and return if status_code == 423
render_optional_error_file(status_code || 500)
end if ENV['RAILS_ENV'] != "development"
end
1 change: 1 addition & 0 deletions app/controllers/sessions_controller.rb
@@ -1,4 +1,5 @@
class SessionsController < ApplicationController
before_filter :login_from_cookie, :except => [:destroy]

def create
failed_openid_login "Por favor, introduza um OpenID válido." and return if using_open_id_but_without_open_id?
Expand Down

0 comments on commit 4f1b0a5

Please sign in to comment.