Skip to content

Instantly share code, notes, and snippets.

@andronics
Created September 14, 2023 20:55
Show Gist options
  • Save andronics/1cc7bda3b3929a1aa8fec51374dc6fdb to your computer and use it in GitHub Desktop.
Save andronics/1cc7bda3b3929a1aa8fec51374dc6fdb to your computer and use it in GitHub Desktop.
FileFlows License Patch
diff --git a/Server/Helpers/LicenseHelper.cs b/Server/Helpers/LicenseHelper.cs
index 0105b902..858a0b3e 100644
--- a/Server/Helpers/LicenseHelper.cs
+++ b/Server/Helpers/LicenseHelper.cs
@@ -68,17 +68,24 @@ class LicenseHelper
internal static License? FromCode(string code)
{
- if (string.IsNullOrWhiteSpace(code))
- return null;
- try
- {
- string decrypted = Decrypt(LicenseResponse_DecryptionKey, code);
- return JsonSerializer.Deserialize<License>(decrypted);
- }
- catch (Exception)
+
+ return new License
{
- return null;
- }
+ Status = LicenseStatus.Valid,
+ ExpirationDateUtc = new DateTime(2099, 12, 31, 23, 59, 0, 0),
+ ProcessingNodes = 1024 * 1024 * 1024,
+ Files = 1024 * 1024 * 1024,
+ Flags = (
+ LicenseFlags.ExternalDatabase
+ | LicenseFlags.AutoUpdates
+ | LicenseFlags.Dashboards
+ | LicenseFlags.Revisions
+ | LicenseFlags.Tasks
+ | LicenseFlags.Webhooks
+ | LicenseFlags.ProcessingOrder
+ )
+ };
+
}
private static DateTime LastUpdate = DateTime.MinValue;
@GOvEy1nw
Copy link

Do you happen to have an updated version of this please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment