mirror of
https://github.com/bitwarden/server
synced 2025-12-20 10:13:39 +00:00
[BEEEP] Add explicit error message when uploading the wrong license type (#1831)
This commit is contained in:
@@ -21,6 +21,7 @@ namespace Bit.Core.Models.Business
|
||||
ILicensingService licenseService, int? version = null)
|
||||
{
|
||||
Version = version.GetValueOrDefault(CURRENT_LICENSE_FILE_VERSION); // TODO: Remember to change the constant
|
||||
LicenseType = Enums.LicenseType.Organization;
|
||||
LicenseKey = org.LicenseKey;
|
||||
InstallationId = installationId;
|
||||
Id = org.Id;
|
||||
@@ -121,6 +122,7 @@ namespace Bit.Core.Models.Business
|
||||
public DateTime? Refresh { get; set; }
|
||||
public DateTime? Expires { get; set; }
|
||||
public bool Trial { get; set; }
|
||||
public LicenseType? LicenseType { get; set; }
|
||||
public string Hash { get; set; }
|
||||
public string Signature { get; set; }
|
||||
[JsonIgnore]
|
||||
|
||||
Reference in New Issue
Block a user