Log failed user logins to the Rails logger

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3411 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Eric Davis 2010-02-11 18:25:38 +00:00
parent 937d0c70f7
commit d2baf5f2a7
1 changed files with 1 additions and 0 deletions

View 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