fix license
This commit is contained in:
@@ -223,19 +223,23 @@ class License
|
||||
|
||||
if File.exist?("config/license.yml")
|
||||
if license = YAML.load(File.read("config/license.yml"))
|
||||
if license[lookup]
|
||||
AESCrypt.decrypt_data(decode_str(license[lookup][key_name]), decode_str(key), decode_str(iv), ENV['CIPHER_TYPE'])
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# read line by key for license file without decrypt
|
||||
def read_license_no_decrypt(key)
|
||||
if File.exist?("config/license.yml")
|
||||
if license = YAML.load_file("config/license.yml")
|
||||
if license[lookup]
|
||||
decrypted_line = license[lookup][key]
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# Update license file for line
|
||||
def update_license(content, new_content)
|
||||
|
||||
Reference in New Issue
Block a user