update base controllers
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user