This commit is contained in:
2020-06-11 15:24:43 +00:00
parent 51f1b6da71
commit aadf4e0540
2 changed files with 18 additions and 5 deletions

View File

@@ -15,6 +15,12 @@ namespace rockfishCore.Util
//Key generator controller
public static class RavenKeyFactory
{
//Unlicensed token
private const string UNLICENSED_TOKEN = "UNLICENSED";
//REVOKED token
private const string REVOKED_TOKEN = "REVOKED";
//Scheduleable users
private const string SERVICE_TECHS_FEATURE_NAME = "ServiceTechs";
@@ -46,7 +52,7 @@ namespace rockfishCore.Util
public AyaNovaLicenseKey()
{
Features = new List<LicenseFeature>();
RegisteredTo = "UNLICENSED";
RegisteredTo = UNLICENSED_TOKEN;
Id = RegisteredTo;
}
@@ -234,7 +240,7 @@ namespace rockfishCore.Util
k.MaintenanceExpiration = DateTime.UtcNow.AddYears(1);
k.LicenseExpiration = DateUtil.EmptyDateValue;//1/1/5555 as per spec
}
return genKey(k);
}