This commit is contained in:
2023-02-16 00:04:03 +00:00
parent 98cb68850e
commit 9b0a6adbaa
3 changed files with 7 additions and 4 deletions

View File

@@ -47,7 +47,7 @@ namespace Sockeye.Api.Controllers
}
#if (DEBUG)
private const string LICENSE_SERVER_URL = "http://localhost:3001/";
private const string LICENSE_SERVER_URL = "http://localhost:7676/";
public const string SUPPORT_EMAIL = "cardjohn@ayanova.com";
#else
private const string LICENSE_SERVER_URL = "https://rockfish.ayanova.com/";

View File

@@ -45,7 +45,7 @@ namespace Sockeye.Biz
{
//client can send a non expiring license key but internally it MUST have a date so the
//raven default for non expiring keys is this
if (newObject.LicenseExpire == null)
if (newObject.LicenseExpire == null && !newObject.TrialMode)
{
newObject.LicenseExpire = DateUtil.EmptyDateValueForLicenseGeneration;
}
@@ -114,7 +114,7 @@ namespace Sockeye.Biz
putObject.Tags = TagBiz.NormalizeTags(putObject.Tags);
//client can send a non expiring license key but internally it MUST have a date so the
//raven default for non expiring keys is this
if (putObject.LicenseExpire == null)
if (putObject.LicenseExpire == null && !putObject.TrialMode)
{
putObject.LicenseExpire = DateUtil.EmptyDateValueForLicenseGeneration;
}
@@ -861,6 +861,8 @@ MaximumDataGB: 20
return;
}
//RAVEN keys *always* expire
if (proposedObj.LicenseExpire == null)

View File

@@ -150,6 +150,7 @@ namespace Sockeye.Biz
l.PGroup = putObject.PGroup;
l.TrialMode = true;
l.RegTo = putObject.CompanyName;
l.FetchEmail=putObject.Email;
//perpet and sub both same number of users, covers seeded data values
l.Users = RavenKeyFactory.TRIAL_KEY_USERS;
@@ -169,7 +170,7 @@ namespace Sockeye.Biz
if (newLicense == null)
{
//need to alert on error here
AddError(ApiErrorCode.INVALID_OPERATION, "generalerror", $"ERROR creating trial license on approved trial request:{licenseBiz.GetErrorsAsString}");
AddError(ApiErrorCode.INVALID_OPERATION, "generalerror", $"ERROR creating trial license on approved trial request:{licenseBiz.GetErrorsAsString()}");
return null;
}