1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-03 09:02:48 -05:00

[BEEEP] Add explicit error message when uploading the wrong license type (#1831)

This commit is contained in:
Oscar Hinton
2022-02-07 09:43:00 +01:00
committed by GitHub
parent 240b6e7463
commit cd61c826f9
5 changed files with 32 additions and 0 deletions

View File

@ -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]