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

@@ -54,8 +54,7 @@ SITE UI AND TABLE
ADD DBID as text (and ui)
LICENSE TABLE
Add DBID as text to table for v8 keys
Add Revoked as bool to table for v8 keys
Add DBID as text to table for v8 keys
PURCHASE TABLE
Add quantity to purchase and default to 1
@@ -67,12 +66,20 @@ License UI
modify with tabs for v8 and v7 version
just stub in basic with no options for now or whatever the absolute required will be
for v8 the key is stored in the table same as v7 but with dbid and different format (obvs)
Add an option to generate a revocation key for non-payment
click on a button to generate a revocation key
rf will set all prior keys to fetched for that dbid
rf will generate a new key for dbid with regto set to UNLICENSED_TOKEN
rf will set LicenseExpiration to yesterday
rf will set MaintenanceExpiration yesterday
RAVEN will fetch it and install it and they will be unlicensed
route:
rvfcontroller checks license table and trial table, looks for unfetched key
checks license first for unfetched and matching dbid
checks trial second for unfetched and matching dbid
checks revoke list?(future)

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);
}