license activate lookup domain
This commit is contained in:
@@ -39,19 +39,22 @@ class InstallController < BaseController
|
||||
end
|
||||
|
||||
def lookup_domain
|
||||
if ENV["SERVER_MODE"] == "application"
|
||||
if ENV["SERVER_MODE"] == "cloud"
|
||||
not_found
|
||||
elsif ENV["SERVER_MODE"] == "application"
|
||||
if check_license(request.host)
|
||||
redirect_to root_url and return
|
||||
redirect_to root_url
|
||||
end
|
||||
elsif request.subdomains.last && request.subdomains.last != "www"
|
||||
if check_license(request.host)
|
||||
redirect_to root_url and return
|
||||
elsif check_subdomain(request.host)
|
||||
return
|
||||
end
|
||||
end
|
||||
redirect_to root_url
|
||||
elsif !check_subdomain(request.host)
|
||||
not_found
|
||||
end
|
||||
else
|
||||
not_found
|
||||
end
|
||||
end
|
||||
|
||||
# def current_license(url, key)
|
||||
# @license = License.new(url, key)
|
||||
|
||||
Reference in New Issue
Block a user