license key api for redis

This commit is contained in:
Yan
2018-01-12 15:07:11 +06:30
parent 0eda7543ff
commit 649711f72d
7 changed files with 57 additions and 10 deletions

View File

@@ -38,11 +38,11 @@ class ApplicationController < ActionController::Base
end
else
# check for license file
# if check_license
# current_license(ENV["SX_PROVISION_URL"])
# else
# redirect_to activate_path
# end
if check_license
current_license(ENV["SX_PROVISION_URL"])
else
redirect_to activate_path
end
end
end