Fix bug Content-2297: reset the user's portal id after update it.