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:
commit
69eb7a8546
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user