Guest User

Untitled

a guest
Oct 18th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. return Ok(new { Message = "email_confirmed" });
  2.  
  3. return NotFound();
  4.  
  5. let url: string = "http://10.0.2.2:53286/api/Home/AccountValidation?codeActivation=" + this.code;
  6.  
  7. this.http.patch(url, {
  8.  
  9. }).subscribe((res) => {
  10. console.log(JSON.stringify(res));
  11.  
  12. if(res.status != 404) {
  13. alert({title: "Sistema 3 Esferas", message: "¡Tu cuenta ha sido activada satisfactoriamente! :)", okButtonText: "¡Entendido!"});
  14. this.router.navigate(["/Miembro"]);
  15. } else {
  16. this.btnEnabled = true;
  17. alert({title: "Sistema 3 Esferas", message: "Has introducido un código inválido. :(", okButtonText: "Entiendo..."});
  18. }
  19. });
  20.  
  21. console.log(JSON.stringify(res));
Add Comment
Please, Sign In to add comment