aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/admin_controller.rb
diff options
context:
space:
mode:
authorseb <seb@seb-U36JC>2011-11-21 12:31:44 +0000
committerseb <seb@seb-U36JC>2011-11-21 12:31:44 +0000
commit5128b4348862037139df45da15d4eee314bc710a (patch)
tree27244482483e7217be247198024425a4d75c312d /app/controllers/admin_controller.rb
parent892e5d6d7f51097f9d1c96bd8fd481b7513ec186 (diff)
Username from users logged in as ADMIN_USERNAME should appear in administrative interface event logs. Fixes #287.
Diffstat (limited to 'app/controllers/admin_controller.rb')
-rw-r--r--app/controllers/admin_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/admin_controller.rb b/app/controllers/admin_controller.rb
index 0bfbcd3d1..adb506b91 100644
--- a/app/controllers/admin_controller.rb
+++ b/app/controllers/admin_controller.rb
@@ -53,6 +53,7 @@ class AdminController < ApplicationController
authenticate_or_request_with_http_basic do |user_name, password|
if user_name == config_username && password == config_password
session[:using_admin] = 1
+ request.env['REMOTE_USER'] = user_name
else
request_http_basic_authentication
end