From 842b4b64f111910681a4ee896cb7773501541630 Mon Sep 17 00:00:00 2001 From: r888888888 Date: Wed, 17 Apr 2013 13:31:38 -0700 Subject: [PATCH] ensure CurrentUser is reset before requests are processed, disable api keys --- app/controllers/application_controller.rb | 1 + app/views/users/_statistics.html.erb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 62f6e378c..6e286d5c6 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -1,6 +1,7 @@ class ApplicationController < ActionController::Base protect_from_forgery helper :pagination + before_filetr :reset_current_user before_filter :set_current_user after_filter :reset_current_user before_filter :set_title diff --git a/app/views/users/_statistics.html.erb b/app/views/users/_statistics.html.erb index 5f7bbce5b..a6106a76f 100644 --- a/app/views/users/_statistics.html.erb +++ b/app/views/users/_statistics.html.erb @@ -112,7 +112,7 @@ <% if CurrentUser.user.id == user.id %> API Key - <%= CurrentUser.user.bcrypt_cookie_password_hash %> +

Temporarily disabled

<%#= CurrentUser.user.bcrypt_cookie_password_hash %> <% end %>