From 953962819905f4f2ebb67fa4d403c48b31d48ac2 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Sun, 14 Jun 2020 18:18:40 +0000 Subject: [PATCH] --- util/RavenKeyFactory.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/util/RavenKeyFactory.cs b/util/RavenKeyFactory.cs index fd5ee0e..e97a534 100644 --- a/util/RavenKeyFactory.cs +++ b/util/RavenKeyFactory.cs @@ -222,9 +222,11 @@ namespace rockfishCore.Util //trial period time limit k.MaintenanceExpiration = k.LicenseExpiration = DateTime.UtcNow.AddDays(TRIAL_PERIOD_DAYS); - + //flag as trial key not regular key k.Features.Add(new LicenseFeature() { Feature = TRIAL_FEATURE_NAME, Count = 0 }); + //flag it as a temporary expiring key so that the expiration date takes effect + k.Features.Add(new LicenseFeature() { Feature = RENTAL_FEATURE_NAME, Count = 0 }); //add every possible feature k.Features.Add(new LicenseFeature() { Feature = ACCOUNTING_FEATURE_NAME, Count = 0 });