From 4487b988b17da0ce73dac79c1efea46e1f5a17a5 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Tue, 7 May 2013 22:14:08 +0200 Subject: [PATCH] Improved error handling. --- app/models/user.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/models/user.rb b/app/models/user.rb index 3c5ca8000..116c0ef1f 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -76,6 +76,7 @@ class User < ApplicationModel user_auth = nil config.each {|config_item| next if !config_item[:adapter] + next if config_item.class == TrueClass file = "auth/#{config_item[:adapter]}" require file user_auth = Auth.const_get("#{config_item[:adapter].to_s.upcase}").check( username, password, config_item, user ) @@ -126,6 +127,7 @@ class User < ApplicationModel user_auth = nil config.each {|config_item| next if !config_item[:adapter] + next if config_item.class == TrueClass file = "sso/#{config_item[:adapter]}" require file user_auth = SSO.const_get("#{config_item[:adapter].to_s.upcase}").check( params, config_item )