update base controllers
This commit is contained in:
@@ -13,7 +13,7 @@ module LicenseVerification
|
||||
if (!@license.nil?)
|
||||
# logger.info "Location - " + @license.name
|
||||
ActiveRecord::Base.establish_connection(website_connection(@license))
|
||||
authenticate_session_token
|
||||
# authenticate_session_token
|
||||
# logger.info "Connecting to - " + @license.subdomain + " - "+ @license.dbhost + "@" + @license.dbschema
|
||||
else
|
||||
# reconnect_default_db
|
||||
@@ -40,6 +40,7 @@ module LicenseVerification
|
||||
@user = Employee.authenticate_by_token(token)
|
||||
if !@user
|
||||
flash[:notice] = 'Invalid Access!'
|
||||
redirect_to root_path
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user