@@ -77,7 +77,7 class AuthSource < ActiveRecord::Base | |||||
77 |
|
77 | |||
78 | # Try to authenticate a user not yet registered against available sources |
|
78 | # Try to authenticate a user not yet registered against available sources | |
79 | def self.authenticate(login, password) |
|
79 | def self.authenticate(login, password) | |
80 |
AuthSource.where(:onthefly_register => true). |
|
80 | AuthSource.where(:onthefly_register => true).each do |source| | |
81 | begin |
|
81 | begin | |
82 | logger.debug "Authenticating '#{login}' against '#{source.name}'" if logger && logger.debug? |
|
82 | logger.debug "Authenticating '#{login}' against '#{source.name}'" if logger && logger.debug? | |
83 | attrs = source.authenticate(login, password) |
|
83 | attrs = source.authenticate(login, password) |
General Comments 0
You need to be logged in to leave comments.
Login now