Sha256: 41e22d3dae0344c1bdc45c9f10e706e7ff9f016b3db9274103f4eba8a02336cc

Contents?: true

Size: 309 Bytes

Versions: 34

Compression:

Stored size: 309 Bytes

Contents

module Challah
  module Authenticators
    class Password
      def self.match?(user, provider, plain_password)
        if !!provider
          crypted_password = provider.fetch(:token)
          return Encrypter.compare(crypted_password, plain_password)
        end

        false
      end
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
challah-1.2.2 lib/challah/authenticators/password.rb
challah-1.2.1 lib/challah/authenticators/password.rb
challah-1.2.0 lib/challah/authenticators/password.rb
challah-1.2.0.rc lib/challah/authenticators/password.rb
challah-1.1.1 lib/challah/authenticators/password.rb
challah-1.1.0 lib/challah/authenticators/password.rb
challah-1.0.0 lib/challah/authenticators/password.rb
challah-1.0.0.beta3 lib/challah/authenticators/password.rb
challah-1.0.0.beta2 lib/challah/authenticators/password.rb
challah-1.0.0.beta lib/challah/authenticators/password.rb
challah-0.9.1.beta.3 lib/challah/authenticators/password.rb
challah-0.9.1.beta.2 lib/challah/authenticators/password.rb
challah-0.9.1.beta lib/challah/authenticators/password.rb
challah-0.9.0 lib/challah/authenticators/password.rb