Basically, in my app users can change their email addresses. The update code works just fine but it doesn’t reset the userStatus back to DISABLED. I would like them to have to validate their accounts again to prevent them from getting locked out if they screwed up the change to their email address.
static Future<bool> updateEmail(String email) async {
var user = await Backendless.userService.currentUser();
user.setProperty('email', email);
user.setProperty('userStatus', 'DISABLED');
return Backendless.userService.update(user).then((result) => true);
}