mirror of
https://github.com/bitwarden/server.git
synced 2024-11-22 12:15:36 +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)
|
||||
{
|
||||
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;
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user