update license activate

This commit is contained in:
NyanLinHtut
2020-01-22 10:17:30 +06:30
parent d054776357
commit 35e84d9b62
7 changed files with 295 additions and 259 deletions

View File

@@ -29,7 +29,7 @@ class InstallController < BaseController
# aes_iv = ENV["AES_IV"]
# end
@license = License.new(ENV["SX_PROVISION_URL"])
@license = License.new(ENV["SX_PROVISION_URL"], request.host)
response = @license.license_activate(restaurant, license_key, db_host, db_schema, db_user, db_password)
if response[:status]
redirect_to root_url, notice: response["message"]