rm core/main/models/user.rb

This commit is contained in:
Brendan Coles
2019-02-26 03:15:15 +00:00
parent 64c2c5e01b
commit eb840a0a6a
2 changed files with 0 additions and 32 deletions

View File

@@ -10,7 +10,6 @@ end
end end
# @note Includes database models - the order must be consistent otherwise DataMapper goes crazy # @note Includes database models - the order must be consistent otherwise DataMapper goes crazy
require 'core/main/models/user'
require 'core/main/models/commandmodule' require 'core/main/models/commandmodule'
require 'core/main/models/hookedbrowser' require 'core/main/models/hookedbrowser'
require 'core/main/models/log' require 'core/main/models/log'

View File

@@ -1,31 +0,0 @@
#
# Copyright (c) 2006-2019 Wade Alcorn - wade@bindshell.net
# Browser Exploitation Framework (BeEF) - http://beefproject.com
# See the file 'doc/COPYING' for copying permission
#
module BeEF
module Core
module Models
# @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
# @return [Boolean] If the user is authenticated
def authenticated?
true || false if not @ip.nil?
end
end
end
end
end