mirror of
https://github.com/bitwarden/server
synced 2025-12-16 08:13:33 +00:00
continue if disables
This commit is contained in:
@@ -80,16 +80,19 @@ namespace Bit.Core.Services
|
|||||||
if(totalLicensedOrgs > 1)
|
if(totalLicensedOrgs > 1)
|
||||||
{
|
{
|
||||||
await DisableOrganizationAsync(org, license, "Multiple organizations.");
|
await DisableOrganizationAsync(org, license, "Multiple organizations.");
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!license.VerifyData(org, _globalSettings))
|
if(!license.VerifyData(org, _globalSettings))
|
||||||
{
|
{
|
||||||
await DisableOrganizationAsync(org, license, "Invalid data.");
|
await DisableOrganizationAsync(org, license, "Invalid data.");
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!license.VerifySignature(_certificate))
|
if(!license.VerifySignature(_certificate))
|
||||||
{
|
{
|
||||||
await DisableOrganizationAsync(org, license, "Invalid signature.");
|
await DisableOrganizationAsync(org, license, "Invalid signature.");
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user