@@ -38,7 +38,8 class AuthSource < ActiveRecord::Base | |||
|
38 | 38 | begin |
|
39 | 39 | logger.debug "Authenticating '#{login}' against '#{source.name}'" if logger && logger.debug? |
|
40 | 40 | attrs = source.authenticate(login, password) |
|
41 | rescue | |
|
41 | rescue => e | |
|
42 | logger.error "Error during authentication: #{e.message}" | |
|
42 | 43 | attrs = nil |
|
43 | 44 | end |
|
44 | 45 | return attrs if attrs |
General Comments 0
You need to be logged in to leave comments.
Login now