license update for token
This commit is contained in:
@@ -2,9 +2,8 @@ module LoginVerification
|
||||
extend ActiveSupport::Concern
|
||||
|
||||
included do
|
||||
# before_action :authenticate
|
||||
before_action :authenticate
|
||||
helper_method :current_company,:current_login_employee
|
||||
|
||||
end
|
||||
|
||||
|
||||
@@ -24,6 +23,8 @@ module LoginVerification
|
||||
if @user
|
||||
return true
|
||||
#Maybe log - login?
|
||||
else
|
||||
flash[:notice] = 'Invalid Access!'
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -50,6 +51,10 @@ module LoginVerification
|
||||
end
|
||||
|
||||
private
|
||||
def check_license
|
||||
License.check_license_file
|
||||
end
|
||||
|
||||
def check_installation
|
||||
if current_company.nil?
|
||||
redirect_to install_path
|
||||
|
||||
Reference in New Issue
Block a user