mirror of
https://github.com/bitwarden/server.git
synced 2024-11-26 12:55:17 +01:00
check folders as well
This commit is contained in:
parent
e732996cd9
commit
5b76c43fb0
@ -201,7 +201,7 @@ namespace Bit.Core.Services
|
|||||||
user.RevisionDate = user.AccountRevisionDate = DateTime.UtcNow;
|
user.RevisionDate = user.AccountRevisionDate = DateTime.UtcNow;
|
||||||
user.PrivateKey = privateKey;
|
user.PrivateKey = privateKey;
|
||||||
|
|
||||||
if(ciphers.Any())
|
if(ciphers.Any() || folders.Any())
|
||||||
{
|
{
|
||||||
await _cipherRepository.UpdateUserEmailPasswordAndCiphersAsync(user, ciphers, folders);
|
await _cipherRepository.UpdateUserEmailPasswordAndCiphersAsync(user, ciphers, folders);
|
||||||
}
|
}
|
||||||
@ -236,7 +236,7 @@ namespace Bit.Core.Services
|
|||||||
|
|
||||||
user.RevisionDate = user.AccountRevisionDate = DateTime.UtcNow;
|
user.RevisionDate = user.AccountRevisionDate = DateTime.UtcNow;
|
||||||
user.PrivateKey = privateKey;
|
user.PrivateKey = privateKey;
|
||||||
if(ciphers.Any())
|
if(ciphers.Any() || folders.Any())
|
||||||
{
|
{
|
||||||
await _cipherRepository.UpdateUserEmailPasswordAndCiphersAsync(user, ciphers, folders);
|
await _cipherRepository.UpdateUserEmailPasswordAndCiphersAsync(user, ciphers, folders);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user