Fix License Patch
This commit is contained in:
parent
e117fb53fc
commit
62e35e50a9
2 changed files with 51 additions and 193 deletions
28
patches/enterprise-license.patch
Normal file
28
patches/enterprise-license.patch
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
diff --git a/src/main/java/stirling/software/SPDF/EE/LicenseKeyChecker.java b/src/main/java/stirling/software/SPDF/EE/LicenseKeyChecker.java
|
||||
index d788504c..df83518d 100644
|
||||
--- a/src/main/java/stirling/software/SPDF/EE/LicenseKeyChecker.java
|
||||
+++ b/src/main/java/stirling/software/SPDF/EE/LicenseKeyChecker.java
|
||||
@@ -44,20 +44,9 @@ public class LicenseKeyChecker {
|
||||
if (!applicationProperties.getPremium().isEnabled()) {
|
||||
premiumEnabledResult = License.NORMAL;
|
||||
} else {
|
||||
- String licenseKey = getLicenseKeyContent(applicationProperties.getPremium().getKey());
|
||||
- if (licenseKey != null) {
|
||||
- premiumEnabledResult = licenseService.verifyLicense(licenseKey);
|
||||
- if (License.ENTERPRISE == premiumEnabledResult) {
|
||||
- log.info("License key is Enterprise.");
|
||||
- } else if (License.PRO == premiumEnabledResult) {
|
||||
- log.info("License key is Pro.");
|
||||
- } else {
|
||||
- log.info("License key is invalid, defaulting to non pro license.");
|
||||
- }
|
||||
- } else {
|
||||
- log.error("Failed to obtain license key content.");
|
||||
- premiumEnabledResult = License.NORMAL;
|
||||
- }
|
||||
+ premiousEnabledResult = License.ENTERPRISE;
|
||||
+ applicationProperties.getEnterpriseEdition().setMaxUsers(Integer.MAX_VALUE);
|
||||
+ log.info("License key is Enterprise.");
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue