git-svn-id: https://beef.googlecode.com/svn/trunk@1033 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
30 lines
542 B
Ruby
30 lines
542 B
Ruby
module BeEF
|
|
module Core
|
|
module Models
|
|
#
|
|
# Table stores the list of users that have authenticated into beef.
|
|
#
|
|
# TODO: move this table into the AdminUI extension folder.
|
|
#
|
|
class User
|
|
|
|
include DataMapper::Resource
|
|
|
|
storage_names[:default] = 'extension_adminui_users'
|
|
|
|
property :id, Serial
|
|
property :session_id, String, :length => 255
|
|
property :ip, Text
|
|
|
|
#
|
|
# Checks if the user has been authenticated
|
|
#
|
|
def authenticated?
|
|
true || false if not @ip.nil?
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
end
|
|
end |