Answer the question
In order to leave comments, you need to log in
Why does the method "continue" running after return?
Hello!
I have a .net core project with an action protected by reCaptcha.
public async Task<IActionResult> SignUp(UserSignUpModel model)
{
var recaptchaRes = await _reCaptchaService.Validate(Request, !Startup.IsDevelopment);
if (!recaptchaRes.success)
{
return BadRequest("ReCaptcha is invalid");
}
_userService.Signup(model);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question