diff --git a/lib/devise_kerberos_authenticatable/strategy.rb b/lib/devise_kerberos_authenticatable/strategy.rb index 6da4eaa..72cddfe 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] == 'devise/sessions' + params[:controller].include?('sessions') end def valid_params?