rm core/main/models/user.rb
This commit is contained in:
@@ -10,7 +10,6 @@ end
|
||||
end
|
||||
|
||||
# @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/hookedbrowser'
|
||||
require 'core/main/models/log'
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user