mirror of
https://github.com/bitwarden/server.git
synced 2025-02-16 01:51:21 +01:00
up KDF max to 2 million
This commit is contained in:
parent
0f3fcc122d
commit
f7be870bfe
@ -19,9 +19,9 @@ namespace Bit.Core.Models.Api
|
|||||||
switch(Kdf.Value)
|
switch(Kdf.Value)
|
||||||
{
|
{
|
||||||
case KdfType.PBKDF2_SHA256:
|
case KdfType.PBKDF2_SHA256:
|
||||||
if(KdfIterations.Value < 5000 || KdfIterations.Value > 1_000_000)
|
if(KdfIterations.Value < 5000 || KdfIterations.Value > 2_000_000)
|
||||||
{
|
{
|
||||||
yield return new ValidationResult("KDF iterations must be between 5000 and 1000000.");
|
yield return new ValidationResult("KDF iterations must be between 5000 and 2000000.");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user