diff options
author | francis <francis> | 2008-02-29 10:34:15 +0000 |
---|---|---|
committer | francis <francis> | 2008-02-29 10:34:15 +0000 |
commit | c623becabe72422668c0e79bebc9d3d138b05f85 (patch) | |
tree | a5acbedcfcb3270603d1adcf484676907b1e232a /app/controllers/help_controller.rb | |
parent | 45777acc5f00722511cb170d28bcf26d5432ef18 (diff) |
Don't try and show IP on contact emails - not much use anyway, and doesn't work for some reason.
Diffstat (limited to 'app/controllers/help_controller.rb')
-rw-r--r-- | app/controllers/help_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/help_controller.rb b/app/controllers/help_controller.rb index 781214dc0..f701d38cf 100644 --- a/app/controllers/help_controller.rb +++ b/app/controllers/help_controller.rb @@ -4,7 +4,7 @@ # Copyright (c) 2008 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: help_controller.rb,v 1.4 2008-02-21 18:32:43 francis Exp $ +# $Id: help_controller.rb,v 1.5 2008-02-29 10:34:15 francis Exp $ class HelpController < ApplicationController @@ -24,7 +24,7 @@ class HelpController < ApplicationController params[:contact][:email], params[:contact][:subject], params[:contact][:message], - "IP #{request.env['REMOTE_HOST']}" + (@user ? (", logged in as user " + @user.email) : ", not logged in") + (@user ? ("logged in as user " + @user.email) : "not logged in") ) flash[:notice] = "Your message has been sent. Thank you for getting in touch! We'll get back to you soon." redirect_to frontpage_url |