diff options
author | Patrick J Cherry <patrick@bytemark.co.uk> | 2011-06-16 11:45:03 +0100 |
---|---|---|
committer | Patrick J Cherry <patrick@bytemark.co.uk> | 2011-06-16 11:45:03 +0100 |
commit | 6910aeda9ee2b05f95817921a67c1a3c5f7dbfd0 (patch) | |
tree | e461524b822583495280702cfa9511a6245db007 /lib/mauve/web_interface.rb | |
parent | addb611276f434c261391832616b8e576e9fd84b (diff) |
Added username logging
Diffstat (limited to 'lib/mauve/web_interface.rb')
-rw-r--r-- | lib/mauve/web_interface.rb | 8 |
1 files changed, 7 insertions, 1 deletions
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. # |