Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Can't Update User Email in Backend

$
0
0

@Npact wrote:

For some reason this doesn't work specifically for updating a user's email:

$scope.update = function() {
var user = Ionic.User.current();
user.details.email = $scope.account.email;
var success = function(response) {
console.log(user.details) //this shows the updated email
}
var failure = function(error) {
console.log('there was an error saving account update');
}
user.save().then(success, failure);
};

The user.save success shows the updated email, but in the backend, nothing changes.

Also, if I add an Ionic.User.load function into the success function, the loaded user has the old email.

Other details like "name" work perfectly fine, this is only for "email."

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>