Sha256: 12ea0f89ee4b4216d6491a2a4ac6165a5cea8ec8c9315ff4dca1783a706d5e00

Contents?: true

Size: 360 Bytes

Versions: 8

Compression:

Stored size: 360 Bytes

Contents

module Trestle
  module Auth
    module Backends
      class Devise < Warden
        # Authenticates a user from a login form request.
        # Devise requires that params authentication is explicitly enabled.
        def authenticate!
          request.env["devise.allow_params_authentication"] = true
          super
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
trestle-auth-0.5.0 lib/trestle/auth/backends/devise.rb
trestle-auth-0.5.0.pre2 lib/trestle/auth/backends/devise.rb
trestle-auth-0.5.0.pre lib/trestle/auth/backends/devise.rb
trestle-auth-0.4.4 lib/trestle/auth/backends/devise.rb
trestle-auth-0.4.3 lib/trestle/auth/backends/devise.rb
trestle-auth-0.4.2 lib/trestle/auth/backends/devise.rb
trestle-auth-0.4.1 lib/trestle/auth/backends/devise.rb
trestle-auth-0.4.0 lib/trestle/auth/backends/devise.rb