update base controllers

This commit is contained in:
Yan
2018-02-23 14:45:53 +06:30
parent 643a9d71be
commit 25a212bb70
10 changed files with 14 additions and 4 deletions

View File

@@ -2,7 +2,7 @@ module LoginVerification
extend ActiveSupport::Concern
included do
before_action :authenticate
before_action :authenticate_session_token
helper_method :current_company,:current_login_employee
end
@@ -25,6 +25,7 @@ module LoginVerification
#Maybe log - login?
else
flash[:notice] = 'Invalid Access!'
# return false
end
end
end