summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/models/auth_source.rb2
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)