]> source.dussan.org Git - redmine.git/commitdiff
Log successful authentications.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 7 Aug 2012 19:50:18 +0000 (19:50 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 7 Aug 2012 19:50:18 +0000 (19:50 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10166 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/account_controller.rb

index dec06541b5bae2c96bdce654c8a057896d767b6d..fc6538572010176d5190e608b08a58a4f3fad40d 100644 (file)
@@ -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