mirror of
https://github.com/bitwarden/server.git
synced 2025-07-01 08:02:49 -05:00
check folders as well
This commit is contained in:
@ -201,7 +201,7 @@ namespace Bit.Core.Services
|
||||
user.RevisionDate = user.AccountRevisionDate = DateTime.UtcNow;
|
||||
user.PrivateKey = privateKey;
|
||||
|
||||
if(ciphers.Any())
|
||||
if(ciphers.Any() || folders.Any())
|
||||
{
|
||||
await _cipherRepository.UpdateUserEmailPasswordAndCiphersAsync(user, ciphers, folders);
|
||||
}
|
||||
@ -236,7 +236,7 @@ namespace Bit.Core.Services
|
||||
|
||||
user.RevisionDate = user.AccountRevisionDate = DateTime.UtcNow;
|
||||
user.PrivateKey = privateKey;
|
||||
if(ciphers.Any())
|
||||
if(ciphers.Any() || folders.Any())
|
||||
{
|
||||
await _cipherRepository.UpdateUserEmailPasswordAndCiphersAsync(user, ciphers, folders);
|
||||
}
|
||||
|
Reference in New Issue
Block a user