This commit is contained in:
@@ -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/";
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user