From 8f84f8b488be390dba3527cbe427178483ba1374 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 14 Aug 2017 10:20:25 -0400 Subject: [PATCH] issue license key and store expiration date --- src/Core/Services/Implementations/OrganizationService.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Core/Services/Implementations/OrganizationService.cs b/src/Core/Services/Implementations/OrganizationService.cs index 37ddb5dce2..2e07006eb3 100644 --- a/src/Core/Services/Implementations/OrganizationService.cs +++ b/src/Core/Services/Implementations/OrganizationService.cs @@ -519,6 +519,8 @@ namespace Bit.Core.Services GatewayCustomerId = customer?.Id, GatewaySubscriptionId = subscription?.Id, Enabled = true, + ExpirationDate = subscription.CurrentPeriodEnd, + LicenseKey = CoreHelpers.SecureRandomString(20), CreationDate = DateTime.UtcNow, RevisionDate = DateTime.UtcNow };