1
0
mirror of https://github.com/bitwarden/server.git synced 2025-02-01 23:31:41 +01:00

issue license key and store expiration date

This commit is contained in:
Kyle Spearrin 2017-08-14 10:20:25 -04:00
parent 10ff21983b
commit 8f84f8b488

View File

@ -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
};