git-svn-id: http://svn.redmine.org/redmine/trunk@12593 e93f8b46-1217-0410-a6f0-8f06a7374b81tags/2.5.0
@@ -77,7 +77,7 @@ class AuthSource < ActiveRecord::Base | |||
# Try to authenticate a user not yet registered against available sources | |||
def self.authenticate(login, password) | |||
AuthSource.where(:onthefly_register => true).all.each do |source| | |||
AuthSource.where(:onthefly_register => true).each do |source| | |||
begin | |||
logger.debug "Authenticating '#{login}' against '#{source.name}'" if logger && logger.debug? | |||
attrs = source.authenticate(login, password) |