Skip to content

Commit

Permalink
Changed request forgery to log out user (like rails 3)
Browse files Browse the repository at this point in the history
  • Loading branch information
cykod committed Nov 29, 2011
1 parent 178b2f6 commit e085b85
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/controllers/module_app_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,12 @@ def handle_page
end

self.request_forgery_protection_token ||= :authenticity_token
verify_authenticity_token
begin
verify_authenticity_token
rescue
Rails.logger.error("Invalid Token")
process_logout
end

if params['__VER__']
@preview = true
Expand Down

0 comments on commit e085b85

Please sign in to comment.