Mercurial > hg > soundsoftware-site
comparison app/models/auth_source.rb @ 1517:dffacf8a6908 redmine-2.5
Update to Redmine SVN revision 13367 on 2.5-stable branch
author | Chris Cannam |
---|---|
date | Tue, 09 Sep 2014 09:29:00 +0100 |
parents | e248c7af89ec |
children |
comparison
equal
deleted
inserted
replaced
1516:b450a9d58aed | 1517:dffacf8a6908 |
---|---|
75 false | 75 false |
76 end | 76 end |
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).all.each do |source| | 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) |
84 rescue => e | 84 rescue => e |
85 logger.error "Error during authentication: #{e.message}" | 85 logger.error "Error during authentication: #{e.message}" |