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.6.1 lib/challah/authenticators/password.rb
challah-1.6.0 lib/challah/authenticators/password.rb
challah-1.5.0 lib/challah/authenticators/password.rb
challah-1.4.2 lib/challah/authenticators/password.rb
challah-1.4.1 lib/challah/authenticators/password.rb
challah-1.4.0 lib/challah/authenticators/password.rb
challah-1.3.3 lib/challah/authenticators/password.rb
challah-1.3.2 lib/challah/authenticators/password.rb
challah-1.3.1 lib/challah/authenticators/password.rb
challah-1.3.0 lib/challah/authenticators/password.rb
challah-1.2.11 lib/challah/authenticators/password.rb
challah-1.2.10 lib/challah/authenticators/password.rb
challah-1.2.9 lib/challah/authenticators/password.rb
challah-1.2.8 lib/challah/authenticators/password.rb
challah-1.2.7 lib/challah/authenticators/password.rb
challah-1.2.6 lib/challah/authenticators/password.rb
challah-1.2.5 lib/challah/authenticators/password.rb
challah-1.2.5.pre lib/challah/authenticators/password.rb
challah-1.2.4 lib/challah/authenticators/password.rb
challah-1.2.3 lib/challah/authenticators/password.rb