diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-07-07 13:53:38 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-07-07 13:53:38 +0000 |
commit | 7a529b24ee40e1018d6367d94b9ecbd25c1c81a9 (patch) | |
tree | 193e058289be24c190106e30218a548c2088d135 /app/models/auth_source.rb | |
parent | b379397d95142a2355dea4ec7195c1cee1cbb1bd (diff) | |
download | redmine-7a529b24ee40e1018d6367d94b9ecbd25c1c81a9.tar.gz redmine-7a529b24ee40e1018d6367d94b9ecbd25c1c81a9.zip |
Code cleanup.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9935 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/auth_source.rb')
-rw-r--r-- | app/models/auth_source.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/auth_source.rb b/app/models/auth_source.rb index bfec5f20c..784415863 100644 --- a/app/models/auth_source.rb +++ b/app/models/auth_source.rb @@ -59,7 +59,7 @@ class AuthSource < ActiveRecord::Base # Try to authenticate a user not yet registered against available sources def self.authenticate(login, password) - AuthSource.find(:all, :conditions => ["onthefly_register=?", true]).each do |source| + AuthSource.where(:onthefly_register => true).all.each do |source| begin logger.debug "Authenticating '#{login}' against '#{source.name}'" if logger && logger.debug? attrs = source.authenticate(login, password) |