lib/ronin/credential.rb in ronin-1.3.0 vs lib/ronin/credential.rb in ronin-1.4.0.rc1
- old
+ new
@@ -16,12 +16,10 @@
# You should have received a copy of the GNU General Public License
# along with Ronin. If not, see <http://www.gnu.org/licenses/>.
#
require 'ronin/model'
-require 'ronin/user_name'
-require 'ronin/password'
module Ronin
#
# Represents Credentials used to access services or websites.
#
@@ -30,14 +28,17 @@
include Model
# Primary key of the credential
property :id, Serial
- # Password of the credential
- belongs_to :password
-
# User name of the credential
belongs_to :user_name
+
+ # The optional email address associated with the Credential
+ belongs_to :email_address, :required => false
+
+ # Password of the credential
+ belongs_to :password
#
# Searches for all credentials for a specific user.
#
# @param [String] name