Improved error handling.
This commit is contained in:
parent
65d9f58ebe
commit
9675dbfe22
1 changed files with 2 additions and 0 deletions
|
@ -75,6 +75,7 @@ class User < ApplicationModel
|
|||
# try to login against configure auth backends
|
||||
user_auth = nil
|
||||
config.each {|config_item|
|
||||
next if !config_item[:adapter]
|
||||
file = "auth/#{config_item[:adapter]}"
|
||||
require file
|
||||
user_auth = Auth.const_get("#{config_item[:adapter].to_s.upcase}").check( username, password, config_item, user )
|
||||
|
@ -124,6 +125,7 @@ class User < ApplicationModel
|
|||
# try to login against configure auth backends
|
||||
user_auth = nil
|
||||
config.each {|config_item|
|
||||
next if !config_item[:adapter]
|
||||
file = "sso/#{config_item[:adapter]}"
|
||||
require file
|
||||
user_auth = SSO.const_get("#{config_item[:adapter].to_s.upcase}").check( params, config_item )
|
||||
|
|
Loading…
Reference in a new issue