Sha256: 10466110f6831823b0ad269172b2f919782a733ffe0b6fed5a8b62996f9f0e5d

Contents?: true

Size: 1.05 KB

Versions: 52

Compression:

Stored size: 1.05 KB

Contents

class Mdm::User < ActiveRecord::Base
  extend MetasploitDataModels::SerializedPrefs

  #
  # Relations
  #

  has_many :owned_workspaces,
           class_name: 'Mdm::Workspace',
           foreign_key: 'owner_id',
           inverse_of: :owner

  has_many :tags,
           class_name: 'Mdm::Tag',
           inverse_of: :user

  has_and_belongs_to_many :workspaces, :join_table => 'workspace_members', :uniq => true, :class_name => 'Mdm::Workspace'

  #
  # Serialziations
  #

  serialize :prefs, MetasploitDataModels::Base64Serializer.new

  serialized_prefs_attr_accessor :nexpose_host, :nexpose_port, :nexpose_user, :nexpose_pass, :nexpose_creds_type, :nexpose_creds_user, :nexpose_creds_pass
  serialized_prefs_attr_accessor :http_proxy_host, :http_proxy_port, :http_proxy_user, :http_proxy_pass
  serialized_prefs_attr_accessor :time_zone, :session_key
  serialized_prefs_attr_accessor :last_login_address # specifically NOT last_login_ip to prevent confusion with AuthLogic magic columns (which dont work for serialized fields)

  Metasploit::Concern.run(self)
end

Version data entries

52 entries across 52 versions & 1 rubygems

Version Path
metasploit_data_models-0.19.3 app/models/mdm/user.rb
metasploit_data_models-0.19.0 app/models/mdm/user.rb
metasploit_data_models-0.19.0-java app/models/mdm/user.rb
metasploit_data_models-0.18.1-java app/models/mdm/user.rb
metasploit_data_models-0.18.1 app/models/mdm/user.rb
metasploit_data_models-0.18.0 app/models/mdm/user.rb
metasploit_data_models-0.18.0-java app/models/mdm/user.rb
metasploit_data_models-0.18.0.pre.compatibility app/models/mdm/user.rb
metasploit_data_models-0.17.3-java app/models/mdm/user.rb
metasploit_data_models-0.17.3 app/models/mdm/user.rb
metasploit_data_models-0.17.3.pre.metasploit.pre.concern-java app/models/mdm/user.rb
metasploit_data_models-0.17.3.pre.metasploit.pre.concern app/models/mdm/user.rb