From 7a2c30b1ad2c520de0e91fbbaf7f174382511392 Mon Sep 17 00:00:00 2001 From: tylercloke Date: Mon, 13 Aug 2012 10:05:05 -0700 Subject: Found and fixed security bug where environments were not being cleared on logout. --- chef-server-webui/app/controllers/users.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'chef-server-webui') diff --git a/chef-server-webui/app/controllers/users.rb b/chef-server-webui/app/controllers/users.rb index d3ee752937..72455a6a7e 100644 --- a/chef-server-webui/app/controllers/users.rb +++ b/chef-server-webui/app/controllers/users.rb @@ -133,6 +133,7 @@ class Users < Application Chef::Log.error("#{e}\n#{e.backtrace.join("\n")}") @user = Chef::WebUIUser.new @_message = { :error => "Could not complete logging in." } + @environments = [] render :login end end -- cgit v1.2.1