Skip to content

Commit

Permalink
fix(email-feature-flags): [PM-7882] Email Verification - Removed the …
Browse files Browse the repository at this point in the history
…email feature flag from server.
  • Loading branch information
Patrick-Pimentel-Bitwarden committed Jan 8, 2025
1 parent 92d9b88 commit f97070a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
5 changes: 1 addition & 4 deletions src/Identity/Billing/Controller/AccountsController.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
using Bit.Core;
using Bit.Core.Billing.Models.Api.Requests.Accounts;
using Bit.Core.Billing.Models.Api.Requests.Accounts;
using Bit.Core.Billing.TrialInitiation.Registration;
using Bit.Core.Context;
using Bit.Core.Tools.Enums;
using Bit.Core.Tools.Models.Business;
using Bit.Core.Tools.Services;
using Bit.Core.Utilities;
using Bit.SharedWeb.Utilities;
using Microsoft.AspNetCore.Mvc;

Expand All @@ -18,7 +16,6 @@ public class AccountsController(
ISendTrialInitiationEmailForRegistrationCommand sendTrialInitiationEmailForRegistrationCommand,
IReferenceEventService referenceEventService) : Microsoft.AspNetCore.Mvc.Controller
{
[RequireFeature(FeatureFlagKeys.EmailVerification)]
[HttpPost("trial/send-verification-email")]
public async Task<IActionResult> PostTrialInitiationSendVerificationEmailAsync([FromBody] TrialSendVerificationEmailRequestModel model)
{
Expand Down
4 changes: 0 additions & 4 deletions src/Identity/Controllers/AccountsController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
using Bit.Core.Tools.Enums;
using Bit.Core.Tools.Models.Business;
using Bit.Core.Tools.Services;
using Bit.Core.Utilities;
using Bit.Identity.Models.Request.Accounts;
using Bit.Identity.Models.Response.Accounts;
using Bit.SharedWeb.Utilities;
Expand Down Expand Up @@ -82,7 +81,6 @@ public async Task<RegisterResponseModel> PostRegister([FromBody] RegisterRequest
return await ProcessRegistrationResult(identityResult, user, delaysEnabled: true);
}

[RequireFeature(FeatureFlagKeys.EmailVerification)]
[HttpPost("register/send-verification-email")]
public async Task<IActionResult> PostRegisterSendVerificationEmail([FromBody] RegisterSendVerificationEmailRequestModel model)
{
Expand All @@ -106,7 +104,6 @@ public async Task<IActionResult> PostRegisterSendVerificationEmail([FromBody] Re
return NoContent();
}

[RequireFeature(FeatureFlagKeys.EmailVerification)]
[HttpPost("register/verification-email-clicked")]
public async Task<IActionResult> PostRegisterVerificationEmailClicked([FromBody] RegisterVerificationEmailClickedRequestModel model)
{
Expand Down Expand Up @@ -139,7 +136,6 @@ public async Task<IActionResult> PostRegisterVerificationEmailClicked([FromBody]

}

[RequireFeature(FeatureFlagKeys.EmailVerification)]
[HttpPost("register/finish")]
public async Task<RegisterResponseModel> PostRegisterFinish([FromBody] RegisterFinishRequestModel model)
{
Expand Down

0 comments on commit f97070a

Please sign in to comment.