1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-06 18:42:49 -05:00

Decorated license properties with newly created attributes

This commit is contained in:
Conner Turnbull
2025-05-20 14:43:57 -04:00
parent 59c1994fde
commit 3c40646d9f
3 changed files with 97 additions and 0 deletions

View File

@ -1,6 +1,7 @@
using System.Reflection;
using System.Security.Claims;
using System.Text;
using Bit.Core.Billing.Licenses.Attributes;
using Bit.Core.Billing.Licenses.Extensions;
using Bit.Core.Entities;
using Bit.Core.Services;
@ -54,8 +55,13 @@ public class UserLicense : BaseLicense
Signature = Convert.ToBase64String(licenseService.SignLicense(this));
}
[LicenseVersion(1)]
public string Email { get; set; }
[LicenseVersion(1)]
public bool Premium { get; set; }
[LicenseVersion(1)]
public short? MaxStorageGb { get; set; }
public override byte[] GetDataBytes(bool forHash = false)