1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-25 14:52:21 -05:00

Merge branch 'auth/pm-19685/remove-email-delay-flag' into auth/pm-19691/remove-duo-redirect-flag

This commit is contained in:
Todd Martin 2025-04-07 15:23:59 -04:00 committed by GitHub
commit 69eb7a8546
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -74,11 +74,6 @@ public class SendVerificationEmailForRegistrationCommand : ISendVerificationEmai
await _mailService.SendRegistrationVerificationEmailAsync(email, token);
}
if (delaysEnabled)
{
// Add random delay between 100ms-130ms to prevent timing attacks
await Task.Delay(Random.Shared.Next(100, 130));
}
// User exists but we will return a 200 regardless of whether the email was sent or not; so return null
return null;
}