Files
beef/lib/model/user.rb
scotty.b.brown ffa735caff Moving RBeEF to trunk
git-svn-id: https://beef.googlecode.com/svn/trunk@503 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
2010-11-11 09:16:11 +00:00

24 lines
320 B
Ruby

module BeEF
module Models
class User
include DataMapper::Resource
storage_names[:default] = 'users'
property :id, Serial
property :session_id, Text
property :ip, Text
#
# Checks if the user has been authenticated
#
def authenticated?
true || false if not @ip.nil?
end
end
end
end