Sha256: 8b3e6956c73deaebebef419600e8e140fdfdee445e5471a1adec28cf2fb31de8
Contents?: true
Size: 478 Bytes
Versions: 3
Compression:
Stored size: 478 Bytes
Contents
# A public credential in the form of a Username. class Metasploit::Credential::BlankUsername < Metasploit::Credential::Public # # Callbacks # before_save :blank_username # # Validations # validates :username, uniqueness: true # # Instance Methods # # This method always makes sure the BlankUsername is set to an empty string. # # @return [void] def blank_username self.username ||= '' end Metasploit::Concern.run(self) end
Version data entries
3 entries across 3 versions & 1 rubygems