wixUsersBackend.updateUserFields() unable to update loginEmail

Hi there,

I have been trying to implemenet a ‘change email’ facility for my members and thought wixUsersBackend.updateUserFields(userId, {loginEmail: newEmail}) would do the trick. However, after successfully running the function, nothing happened.

I tried updating other fields such as firstName and lastName and that did work, so it seems there is a problem with loginEmail.

Has anyone else had any luck with this?

Regards