diff options
author | Alex Legler <a3li@gentoo.org> | 2009-04-10 14:04:10 +0200 |
---|---|---|
committer | Alex Legler <a3li@gentoo.org> | 2009-04-10 14:04:10 +0200 |
commit | 44c13b9f97c5bba9dda1bc6b61f26b99c7be0ddc (patch) | |
tree | 02b970358cdeef09af9ffa4a4f2623d8b01087b8 /lib/authentication.rb | |
parent | Adding a new edit page layout, ATM it's still non-functional. (diff) | |
download | glsamaker-44c13b9f97c5bba9dda1bc6b61f26b99c7be0ddc.tar.gz glsamaker-44c13b9f97c5bba9dda1bc6b61f26b99c7be0ddc.tar.bz2 glsamaker-44c13b9f97c5bba9dda1bc6b61f26b99c7be0ddc.zip |
Fixing passenger proprietary environment info
Diffstat (limited to 'lib/authentication.rb')
-rw-r--r-- | lib/authentication.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/authentication.rb b/lib/authentication.rb index ad4b647..eecc5fa 100644 --- a/lib/authentication.rb +++ b/lib/authentication.rb @@ -29,14 +29,14 @@ module Authentication # User not known to GLSAMaker if user == nil - logger.warn "Unknown user #{env_user_name} tried to log in from #{request.request_origin}" + logger.warn "Unknown user #{env_user_name} tried to log in from #{request.remote_ip}" redirect_to :controller => 'index', :action => 'error', :type => 'user' return end # User is marked as disabled in the DB if user.disabled - logger.warn "Disabled user #{env_user_name} tried to log in from #{request.request_origin}" + logger.warn "Disabled user #{env_user_name} tried to log in from #{request.remote_ip}" redirect_to :controller => 'index', :action => 'error', :type => 'disabled' return end |