adding license activation

This commit is contained in:
Yan
2017-11-15 17:55:51 +06:30
parent 50bf67f5e5
commit c2095b4a61
3 changed files with 55 additions and 37 deletions

View File

@@ -2,13 +2,19 @@ class InstallController < BaseController
def index
end
def create
def activate
restaurant = params[:restaurant_name]
license_key = params[:license_key]
admin_user = params[:admin_user]
admin_password = params[:admin_password]
db_user = params[:db_user]
db_password = params[:db_password]
end
def lookup_domain
if request.subdomain.present? && request.subdomain != "www"
@license = current_license(ENV["SX_PROVISION_URL"], request.subdomain.downcase)