Guest User

Untitled

a guest
Feb 24th, 2018
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.84 KB | None | 0 0
  1. Set-Cookie:.AspNet.TwoFactorCookie=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT
  2. Set-Cookie:.AspNet.ExternalCookie=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT
  3. Set-Cookie:.AspNet.ApplicationCookie=-mi7oCB299B3rTFplCLZoY-M46grmtB5G6QY90Z8636uUTIQVWhZzmyTKZRzt2fTPGqHqrV409f5SiDa44qsuZPCqqp5rOAshKx6WBi-p2oDQx9CqFphRez9wfrFtwYHAaNZrSv3EtlzmUKgsAx6WzZ-bbADmc1MKrWoK9iWN_oOlR-LoJQURSzF1zk29P5puMQb_osco5FSA9NBSbsiEfqWT-FaY5sDclgiBVPrDu6aw5KOtrKh50pEKH5coneroHW_Qnv_Eizso8F2sTmgK0wuC4Feq-iu5kmkA-3f59j59KwbFir6bHt2rJYLrA-kXR3U28AXd9TszN_K39p_WgyNywYl8UyC_OA56Wu5rVAfiUmN76CyAE_MqGZit1Kap43Db1IzCv-Hif8AgTbyVxni8tcaucvaXXwssrvv2YnEhSZRupywRMu7539W-MK5e5pDKRM2ImZLsFnDMOpbJDeCSkNPFsfqAyybgbSp79lX4OVh98yiN-xkRMkbp_IRBiD1UFpTJF81seD1fcn_Sg; path=/; expires=Sun, 11-Mar-2018 05:16:12 GMT; secure; HttpOnly
  4. Set-Cookie:ARRAffinity=1c9f49441daef96a3a5b64bf3c3bd25480d9a2c738819ed568ce423efddd7076;Path=/;HttpOnly;Domain=tarjetadsalud-mobile.azurewebsites.net
  5.  
  6. return new Promise((resolve, reject) => {
  7. that.http.post('htttp://xxxxxxxxxxxxxx',
  8. JSON.stringify(params), {
  9. headers: new HttpHeaders().set('Content-Type', 'application/json')
  10.  
  11. }
  12. )
  13. .subscribe(res => {
  14. console.log(JSON.stringify(resolve(res)));
  15.  
  16.  
  17. if(res['Resultado'] == true){
  18.  
  19.  
  20.  
  21. localStorage.setItem('Username',res['Nombre']);
  22. navi.setRoot("HomePage");
  23. }else{
  24. that.toastCtrl.presentToast('Usuario o Contraseña incorrecta');
  25. }
  26.  
  27.  
  28.  
  29.  
  30. }, (err) => {
  31. alert('Error de usuario o contraseña')
  32. reject(err);
  33. });
  34. });
Add Comment
Please, Sign In to add comment