mirror of
https://github.com/bitwarden/server
synced 2025-12-12 14:23:38 +00: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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user