Sha256: c85296b9bb675fc5d6a4116e465fab8b79c7a8fbd0ad222918966aca51345b85

Contents?: true

Size: 603 Bytes

Versions: 12

Compression:

Stored size: 603 Bytes

Contents

module WPScan
  # WordPress User
  class User
    include Finders::Finding

    attr_accessor :password
    attr_reader :id, :username

    # @param [ String ] username
    # @param [ Hash ] opts
    # @option opts [ Integer ] :id
    # @option opts [ String ] :password
    def initialize(username, opts = {})
      @username = username
      @password = opts[:password]
      @id       = opts[:id]

      parse_finding_options(opts)
    end

    def ==(other)
      return false unless self.class == other.class

      username == other.username
    end

    def to_s
      username
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
wpscan-3.2.1 app/models/user.rb
wpscan-3.2.0 app/models/user.rb
wpscan-3.1.0 app/models/user.rb
wpscan-3.0.8 app/models/user.rb
wpscan-3.0.7 app/models/user.rb
wpscan-3.0.6 app/models/user.rb
wpscan-3.0.5 app/models/user.rb
wpscan-3.0.4 app/models/user.rb
wpscan-3.0.3 app/models/user.rb
wpscan-3.0.2 app/models/user.rb
wpscan-3.0.1 app/models/user.rb
wpscan-3.0 app/models/user.rb