1
0
mirror of https://github.com/bitwarden/server synced 2025-12-28 14:13:48 +00:00

[SG-656] Send a captcha bypass token back from the register endpoint (#2278)

* Send a captcha bypass token back from the register endpoint

* [review] Use existing user

* [review] Introduce ICaptcheProtectedResponseModel
This commit is contained in:
Addison Beck
2022-09-15 10:02:37 -04:00
committed by GitHub
parent 735ad264f1
commit 287dc2e06b
4 changed files with 32 additions and 5 deletions

View File

@@ -0,0 +1,4 @@
public interface ICaptchaProtectedResponseModel
{
public string CaptchaBypassToken { get; set; }
}

View File

@@ -0,0 +1,14 @@
using Bit.Core.Models.Api;
namespace Bit.Identity.Models;
public class RegisterResponseModel : ResponseModel, ICaptchaProtectedResponseModel
{
public RegisterResponseModel(string captchaBypassToken)
: base("register")
{
CaptchaBypassToken = captchaBypassToken;
}
public string CaptchaBypassToken { get; set; }
}