case 4457, case 4461
This commit is contained in:
@@ -339,7 +339,10 @@ namespace Sockeye.Biz
|
|||||||
|
|
||||||
|
|
||||||
w.WritePropertyName("InstallableUntil");
|
w.WritePropertyName("InstallableUntil");
|
||||||
w.WriteValue(l.MaintenanceExpire);
|
//There is really no need for keys to not be installable now that that they are fetched automatically
|
||||||
|
//this was a holdover from the old manual paste a key in entry system to prevent piracy of using the key repeatedly, now that it's fetched though
|
||||||
|
//this is not necessary so adding 2 years just avoids an issue with the user not fetching right away or a partially expired key
|
||||||
|
w.WriteValue(l.MaintenanceExpire.AddYears(2));
|
||||||
|
|
||||||
w.WritePropertyName("TotalScheduleableUsers");
|
w.WritePropertyName("TotalScheduleableUsers");
|
||||||
w.WriteValue(l.Users.ToString());//Needs to be a string to match rockfish format
|
w.WriteValue(l.Users.ToString());//Needs to be a string to match rockfish format
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ namespace Sockeye.Biz
|
|||||||
////////////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
//CREATE
|
//CREATE
|
||||||
//
|
//
|
||||||
internal async Task<License> CreateAsync(License newObject, bool importedWithKeyDoNotGenerate = false)
|
internal async Task<License> CreateAsync(License newObject)
|
||||||
{
|
{
|
||||||
//client can send a non expiring license key but internally it MUST have a date if it's RAVEN so the
|
//client can send a non expiring license key but internally it MUST have a date if it's RAVEN so the
|
||||||
//raven default for non expiring keys is this
|
//raven default for non expiring keys is this
|
||||||
@@ -54,11 +54,9 @@ namespace Sockeye.Biz
|
|||||||
return null;
|
return null;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
if (newObject.Active)
|
||||||
if (!importedWithKeyDoNotGenerate && newObject.Active)//do not generate is used for initial import only from rockfish, could be removed after the initial import
|
|
||||||
{
|
{
|
||||||
await GenerateKey(newObject);
|
await GenerateKey(newObject);
|
||||||
|
|
||||||
}
|
}
|
||||||
if (HasErrors) return null;
|
if (HasErrors) return null;
|
||||||
newObject.Tags = TagBiz.NormalizeTags(newObject.Tags);
|
newObject.Tags = TagBiz.NormalizeTags(newObject.Tags);
|
||||||
@@ -75,6 +73,10 @@ namespace Sockeye.Biz
|
|||||||
&& newObject.RegTo != RavenKeyFactory.REVOKED_TOKEN)
|
&& newObject.RegTo != RavenKeyFactory.REVOKED_TOKEN)
|
||||||
{//this means it should notify customer / trialer immediately
|
{//this means it should notify customer / trialer immediately
|
||||||
await NotifyEndUserKeyIsAvailableAsync(newObject);
|
await NotifyEndUserKeyIsAvailableAsync(newObject);
|
||||||
|
if (newObject.NotificationSent == true)
|
||||||
|
{
|
||||||
|
await ct.SaveChangesAsync();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return newObject;
|
return newObject;
|
||||||
}
|
}
|
||||||
@@ -149,6 +151,10 @@ namespace Sockeye.Biz
|
|||||||
&& putObject.RegTo != RavenKeyFactory.REVOKED_TOKEN)
|
&& putObject.RegTo != RavenKeyFactory.REVOKED_TOKEN)
|
||||||
{//this means it should notify customer / trialer immediately
|
{//this means it should notify customer / trialer immediately
|
||||||
await NotifyEndUserKeyIsAvailableAsync(putObject);
|
await NotifyEndUserKeyIsAvailableAsync(putObject);
|
||||||
|
if (putObject.NotificationSent == true)
|
||||||
|
{
|
||||||
|
await ct.SaveChangesAsync();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return putObject;
|
return putObject;
|
||||||
}
|
}
|
||||||
@@ -249,6 +255,7 @@ MaximumDataGB: 20
|
|||||||
{
|
{
|
||||||
await m.SendEmailAsync(notifyDirectSMTP.ToAddress, notifyDirectSMTP.Subject, notifyDirectSMTP.TextBody, ServerGlobalOpsSettingsCache.Notify, null, null, null);
|
await m.SendEmailAsync(notifyDirectSMTP.ToAddress, notifyDirectSMTP.Subject, notifyDirectSMTP.TextBody, ServerGlobalOpsSettingsCache.Notify, null, null, null);
|
||||||
await EventLogProcessor.LogEventToDatabaseAsync(new Event(1, notifyDirectSMTP.ObjectId, notifyDirectSMTP.SockType, SockEvent.DirectSMTP, $"\"{notifyDirectSMTP.Subject}\"->{notifyDirectSMTP.ToAddress}"), ct);
|
await EventLogProcessor.LogEventToDatabaseAsync(new Event(1, notifyDirectSMTP.ObjectId, notifyDirectSMTP.SockType, SockEvent.DirectSMTP, $"\"{notifyDirectSMTP.Subject}\"->{notifyDirectSMTP.ToAddress}"), ct);
|
||||||
|
l.NotificationSent = true;
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<GenerateFullPaths>true</GenerateFullPaths>
|
<GenerateFullPaths>true</GenerateFullPaths>
|
||||||
<Version>8.0.5</Version>
|
<Version>8.0.6</Version>
|
||||||
<FileVersion>8.0.5.0</FileVersion>
|
<FileVersion>8.0.6.0</FileVersion>
|
||||||
<ApplicationIcon>sockeye.ico</ApplicationIcon>
|
<ApplicationIcon>sockeye.ico</ApplicationIcon>
|
||||||
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>
|
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>
|
||||||
<noWarn>1591</noWarn>
|
<noWarn>1591</noWarn>
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ namespace Sockeye.Util
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
internal static class SockeyeVersion
|
internal static class SockeyeVersion
|
||||||
{
|
{
|
||||||
public const string VersionString = "8.0.5";
|
public const string VersionString = "8.0.6";
|
||||||
public const string FullNameAndVersion = "Sockeye server " + VersionString;
|
public const string FullNameAndVersion = "Sockeye server " + VersionString;
|
||||||
public const string CurrentApiVersion="v8";
|
public const string CurrentApiVersion="v8";
|
||||||
}//eoc
|
}//eoc
|
||||||
|
|||||||
Reference in New Issue
Block a user