Guest User

Untitled

a guest
Dec 10th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. [HttpPost]
  2. [AllowAnonymous]
  3. public async Task<IActionResult> SignUp(UserSignUpModel model)
  4. {
  5. var recaptchaRes = await _reCaptchaService.Validate(Request, !Startup.IsDevelopment);
  6.  
  7. if (!recaptchaRes.success)
  8. {
  9. return BadRequest("ReCaptcha is invalid");
  10. }
  11.  
  12. await _userService.Signup(model); // Тут делается вызов userManager и отпрвляется email
  13.  
  14. return Ok();
  15. }
Add Comment
Please, Sign In to add comment