mirror of
https://github.com/bitwarden/server.git
synced 2025-04-05 05:00:19 -05:00
[PM-15625]Disable trial/send-verification-email endpoint for self-host (#5265)
* endpoint is shut off for self-hosted env Signed-off-by: Cy Okeke <cokeke@bitwarden.com> * Fix the reference issues Signed-off-by: Cy Okeke <cokeke@bitwarden.com> --------- Signed-off-by: Cy Okeke <cokeke@bitwarden.com>
This commit is contained in:
parent
37b5cef085
commit
0337300eac
@ -4,6 +4,7 @@ using Bit.Core.Context;
|
|||||||
using Bit.Core.Tools.Enums;
|
using Bit.Core.Tools.Enums;
|
||||||
using Bit.Core.Tools.Models.Business;
|
using Bit.Core.Tools.Models.Business;
|
||||||
using Bit.Core.Tools.Services;
|
using Bit.Core.Tools.Services;
|
||||||
|
using Bit.Core.Utilities;
|
||||||
using Bit.SharedWeb.Utilities;
|
using Bit.SharedWeb.Utilities;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
|
|
||||||
@ -17,6 +18,7 @@ public class AccountsController(
|
|||||||
IReferenceEventService referenceEventService) : Microsoft.AspNetCore.Mvc.Controller
|
IReferenceEventService referenceEventService) : Microsoft.AspNetCore.Mvc.Controller
|
||||||
{
|
{
|
||||||
[HttpPost("trial/send-verification-email")]
|
[HttpPost("trial/send-verification-email")]
|
||||||
|
[SelfHosted(NotSelfHostedOnly = true)]
|
||||||
public async Task<IActionResult> PostTrialInitiationSendVerificationEmailAsync([FromBody] TrialSendVerificationEmailRequestModel model)
|
public async Task<IActionResult> PostTrialInitiationSendVerificationEmailAsync([FromBody] TrialSendVerificationEmailRequestModel model)
|
||||||
{
|
{
|
||||||
var token = await sendTrialInitiationEmailForRegistrationCommand.Handle(
|
var token = await sendTrialInitiationEmailForRegistrationCommand.Handle(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user