diff --git a/lib/devise_kerberos_authenticatable/strategy.rb b/lib/devise_kerberos_authenticatable/strategy.rb index 72cddfe..180954f 100644 --- a/lib/devise_kerberos_authenticatable/strategy.rb +++ b/lib/devise_kerberos_authenticatable/strategy.rb @@ -17,7 +17,7 @@ module Devise protected def valid_controller? - params[:controller].include?('sessions') + params[:controller] && params[:controller].include?('sessions') end def valid_params?