From b6be9bff35fc974c56ac0d9b893ff31320b9635b Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Tue, 7 Aug 2012 19:50:18 +0000 Subject: [PATCH] Log successful authentications. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10166 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/account_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/account_controller.rb b/app/controllers/account_controller.rb index dec06541b..fc6538572 100644 --- a/app/controllers/account_controller.rb +++ b/app/controllers/account_controller.rb @@ -210,6 +210,7 @@ class AccountController < ApplicationController end def successful_authentication(user) + logger.info "Successful authentication for '#{user.login}' from #{request.remote_ip} at #{Time.now.utc}" # Valid user self.logged_user = user # generate a key and set cookie if autologin