1
0
mirror of https://github.com/bitwarden/server.git synced 2025-02-02 23:41:21 +01:00

continue if disables

This commit is contained in:
Kyle Spearrin 2019-02-13 21:03:22 -05:00
parent cc2cef5b27
commit f2aac6b8a0

View File

@ -80,16 +80,19 @@ namespace Bit.Core.Services
if(totalLicensedOrgs > 1)
{
await DisableOrganizationAsync(org, license, "Multiple organizations.");
continue;
}
if(!license.VerifyData(org, _globalSettings))
{
await DisableOrganizationAsync(org, license, "Invalid data.");
continue;
}
if(!license.VerifySignature(_certificate))
{
await DisableOrganizationAsync(org, license, "Invalid signature.");
continue;
}
}
}