This commit is contained in:
13
notes/todo
13
notes/todo
@@ -54,8 +54,7 @@ SITE UI AND TABLE
|
|||||||
ADD DBID as text (and ui)
|
ADD DBID as text (and ui)
|
||||||
|
|
||||||
LICENSE TABLE
|
LICENSE TABLE
|
||||||
Add DBID as text to table for v8 keys
|
Add DBID as text to table for v8 keys
|
||||||
Add Revoked as bool to table for v8 keys
|
|
||||||
|
|
||||||
PURCHASE TABLE
|
PURCHASE TABLE
|
||||||
Add quantity to purchase and default to 1
|
Add quantity to purchase and default to 1
|
||||||
@@ -67,12 +66,20 @@ License UI
|
|||||||
modify with tabs for v8 and v7 version
|
modify with tabs for v8 and v7 version
|
||||||
just stub in basic with no options for now or whatever the absolute required will be
|
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)
|
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:
|
route:
|
||||||
rvfcontroller checks license table and trial table, looks for unfetched key
|
rvfcontroller checks license table and trial table, looks for unfetched key
|
||||||
checks license first for unfetched and matching dbid
|
checks license first for unfetched and matching dbid
|
||||||
checks trial second for unfetched and matching dbid
|
checks trial second for unfetched and matching dbid
|
||||||
checks revoke list?(future)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -15,6 +15,12 @@ namespace rockfishCore.Util
|
|||||||
//Key generator controller
|
//Key generator controller
|
||||||
public static class RavenKeyFactory
|
public static class RavenKeyFactory
|
||||||
{
|
{
|
||||||
|
//Unlicensed token
|
||||||
|
private const string UNLICENSED_TOKEN = "UNLICENSED";
|
||||||
|
|
||||||
|
//REVOKED token
|
||||||
|
private const string REVOKED_TOKEN = "REVOKED";
|
||||||
|
|
||||||
//Scheduleable users
|
//Scheduleable users
|
||||||
private const string SERVICE_TECHS_FEATURE_NAME = "ServiceTechs";
|
private const string SERVICE_TECHS_FEATURE_NAME = "ServiceTechs";
|
||||||
|
|
||||||
@@ -46,7 +52,7 @@ namespace rockfishCore.Util
|
|||||||
public AyaNovaLicenseKey()
|
public AyaNovaLicenseKey()
|
||||||
{
|
{
|
||||||
Features = new List<LicenseFeature>();
|
Features = new List<LicenseFeature>();
|
||||||
RegisteredTo = "UNLICENSED";
|
RegisteredTo = UNLICENSED_TOKEN;
|
||||||
Id = RegisteredTo;
|
Id = RegisteredTo;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -234,7 +240,7 @@ namespace rockfishCore.Util
|
|||||||
k.MaintenanceExpiration = DateTime.UtcNow.AddYears(1);
|
k.MaintenanceExpiration = DateTime.UtcNow.AddYears(1);
|
||||||
k.LicenseExpiration = DateUtil.EmptyDateValue;//1/1/5555 as per spec
|
k.LicenseExpiration = DateUtil.EmptyDateValue;//1/1/5555 as per spec
|
||||||
}
|
}
|
||||||
|
|
||||||
return genKey(k);
|
return genKey(k);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user