Sha256: 3452103426b934591204be5534e0aff271fa712d2d732912c2e0cfa3ffacb6d5

Contents?: true

Size: 380 Bytes

Versions: 3

Compression:

Stored size: 380 Bytes

Contents

module Kms
  module Devise

    class FailureApp < ::Devise::FailureApp

      include ::Kms::Engine.routes.url_helpers

      def redirect_url
        new_kms_user_session_path
      end

      # You need to override respond to eliminate recall
      def respond
        if http_auth?
          http_auth
        else
          redirect
        end
      end

    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
kms-1.2.1 config/initializers/devise.rb
kms-1.2.0 config/initializers/devise.rb
kms-1.1.0 config/initializers/devise.rb