mirror of
https://github.com/bitwarden/server.git
synced 2025-07-01 16:12:49 -05:00
org totp and storage flags
This commit is contained in:
@ -79,6 +79,12 @@ namespace Bit.Core.Services
|
||||
{
|
||||
await _cipherRepository.CreateAsync(cipher);
|
||||
|
||||
if(cipher.OrganizationId.HasValue)
|
||||
{
|
||||
var org = await _organizationRepository.GetByIdAsync(cipher.OrganizationId.Value);
|
||||
cipher.OrganizationUseTotp = org.UseTotp;
|
||||
}
|
||||
|
||||
// push
|
||||
await _pushService.PushSyncCipherCreateAsync(cipher);
|
||||
}
|
||||
|
@ -423,8 +423,10 @@ namespace Bit.Core.Services
|
||||
PlanType = plan.Type,
|
||||
Seats = (short)(plan.BaseSeats + signup.AdditionalSeats),
|
||||
MaxCollections = plan.MaxCollections,
|
||||
MaxStorageGb = plan.MaxStorageGb,
|
||||
UseGroups = plan.UseGroups,
|
||||
UseDirectory = plan.UseDirectory,
|
||||
UseTotp = plan.UseTotp,
|
||||
Plan = plan.Name,
|
||||
StripeCustomerId = customer?.Id,
|
||||
StripeSubscriptionId = subscription?.Id,
|
||||
|
Reference in New Issue
Block a user