From 6910aeda9ee2b05f95817921a67c1a3c5f7dbfd0 Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Thu, 16 Jun 2011 11:45:03 +0100 Subject: Added username logging --- lib/mauve/web_interface.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'lib/mauve/web_interface.rb') diff --git a/lib/mauve/web_interface.rb b/lib/mauve/web_interface.rb index 4c53cc8..2d67957 100644 --- a/lib/mauve/web_interface.rb +++ b/lib/mauve/web_interface.rb @@ -57,7 +57,13 @@ module Mauve # # Phew, we're authenticated # - @person = Configuration.current.people[session['username']] + @person = Configuration.current.people[session['username'].to_s] + + # + # Set remote user for logging. + # + env['REMOTE_USER'] = @person.username + # # Set up some defaults. # -- cgit v1.2.1