خرید بک لینک

Vote count: 0

I am working on IONIC User authentication.

Please refer to this "docs.ionic.io/docs/user-authentication#section-gathering-more-data" .

In this I am not able to catch the retu object properly. and here is my code below

var details = {
  'email': '[email protected]',
  'password': 'secret'
}

var signupSuccess = function(user) {
  if (user) {
    retu "Signup Success";
  }
};

var signupFailure = function(errors) {
  for (var err in errors) {
    retu err;
  }
};

var check = Ionic.Auth.signup(details).then(signupSuccess, signupFailure);   
console.log(check);
console.log(check._result);

If user is not already registered or signup success then I am getting the following result.

Click here to see the result

If user is already registered or signup failed then I am getting the following result.

Click here to see the result

Now I am also seeing the INFO (i) button with in the console log message

Object values at left was snapshotted when logged, value below was evaluated just now.

Can anyone please how to fix this issues. Even I have tried writing the try block but still I am getting POST error in console and I am not even able to extract the value from the Object.

Thank in advance.

asked 39 secs ago

برچسب: نویسنده: استخدام کار تاريخ: چهارشنبه 9 تير 1395 ساعت: 15:10

صفحه بندی