mirror of
https://github.com/bitwarden/server
synced 2026-01-08 03:23:20 +00:00
up KDF max to 2 million
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user