mirror of
https://github.com/bitwarden/server.git
synced 2025-04-08 22:58:11 -05:00
continue if disables
This commit is contained in:
parent
cc2cef5b27
commit
f2aac6b8a0
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user