mirror of
https://github.com/bitwarden/server
synced 2025-12-16 08:13:33 +00:00
license dates
This commit is contained in:
@@ -22,7 +22,8 @@ namespace Bit.Core.Models.Business
|
||||
Premium = user.Premium;
|
||||
MaxStorageGb = user.MaxStorageGb;
|
||||
Issued = DateTime.UtcNow;
|
||||
Expires = billingInfo?.UpcomingInvoice?.Date;
|
||||
Expires = billingInfo?.UpcomingInvoice?.Date?.AddDays(7);
|
||||
Refresh = billingInfo?.UpcomingInvoice?.Date;
|
||||
Trial = (billingInfo?.Subscription?.TrialEndDate.HasValue ?? false) &&
|
||||
billingInfo.Subscription.TrialEndDate.Value > DateTime.UtcNow;
|
||||
Signature = Convert.ToBase64String(licenseService.SignLicense(this));
|
||||
|
||||
Reference in New Issue
Block a user