]> source.dussan.org Git - redmine.git/commitdiff
Log failed user logins to the Rails logger
authorEric Davis <edavis@littlestreamsoftware.com>
Thu, 11 Feb 2010 18:25:38 +0000 (18:25 +0000)
committerEric Davis <edavis@littlestreamsoftware.com>
Thu, 11 Feb 2010 18:25:38 +0000 (18:25 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3411 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/account_controller.rb

index b1500d42832543419de44ab29fd15c93401f246e..d48fdb4dce84e610b264766f2f97e5231dd3f366 100644 (file)
@@ -210,6 +210,7 @@ class AccountController < ApplicationController
   end
 
   def invalid_credentials
+    logger.warn "Failed login for '#{params[:username]}' from #{request.remote_ip} at #{Time.now.utc}"
     flash.now[:error] = l(:notice_account_invalid_creditentials)
   end