1
0
mirror of https://github.com/bitwarden/server synced 2026-01-02 08:33:48 +00:00

chore(feature-flag): [PM-28331] Remove pm-24425-send-2fa-failed-email feature flag

* Removed pm-24425-send-2fa-failed-email

* Removed flagged logic.
This commit is contained in:
Todd Martin
2025-12-08 13:42:54 -05:00
committed by GitHub
parent d687e8a84b
commit bd75c71d10
3 changed files with 9 additions and 22 deletions

View File

@@ -736,11 +736,8 @@ public abstract class BaseRequestValidator<T> where T : class
private async Task SendFailedTwoFactorEmail(User user, TwoFactorProviderType failedAttemptType)
{
if (_featureService.IsEnabled(FeatureFlagKeys.FailedTwoFactorEmail))
{
await _mailService.SendFailedTwoFactorAttemptEmailAsync(user.Email, failedAttemptType, DateTime.UtcNow,
CurrentContext.IpAddress);
}
await _mailService.SendFailedTwoFactorAttemptEmailAsync(user.Email, failedAttemptType, DateTime.UtcNow,
CurrentContext.IpAddress);
}
private async Task<MasterPasswordPolicyResponseModel> GetMasterPasswordPolicyAsync(User user)