license update for token

This commit is contained in:
Yan
2018-02-21 16:30:14 +06:30
parent 84b45f03ff
commit 3d2d304654
10 changed files with 101 additions and 82 deletions

View File

@@ -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