From eb840a0a6a4ec964bc2def61b6b3c3545211aa33 Mon Sep 17 00:00:00 2001 From: Brendan Coles Date: Tue, 26 Feb 2019 03:15:15 +0000 Subject: [PATCH] rm core/main/models/user.rb --- core/core.rb | 1 - core/main/models/user.rb | 31 ------------------------------- 2 files changed, 32 deletions(-) delete mode 100644 core/main/models/user.rb diff --git a/core/core.rb b/core/core.rb index a28c81b84..ed84f1aa9 100644 --- a/core/core.rb +++ b/core/core.rb @@ -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' diff --git a/core/main/models/user.rb b/core/main/models/user.rb deleted file mode 100644 index 746de0390..000000000 --- a/core/main/models/user.rb +++ /dev/null @@ -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