Can't Update User Email in Backend


#1

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.”