Sha256: cdb8b33776594d0d331696721084178fe86b41beb1d4528f5086a7903a9b4667

Contents?: true

Size: 285 Bytes

Versions: 6

Compression:

Stored size: 285 Bytes

Contents

module Devise
  class CustomFailure < ::Devise::FailureApp
    def redirect_url
      cas.new_user_session_url
    end

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cas-cms-1.0.0.alpha2 lib/devise/custom_failure.rb
cas-cms-1.0.0.alpha1 lib/devise/custom_failure.rb
cas-cms-0.1.3 lib/devise/custom_failure.rb
cas-cms-0.1.2 lib/devise/custom_failure.rb
cas-cms-0.1.1 lib/devise/custom_failure.rb
cas-cms-0.1.0 lib/devise/custom_failure.rb