They reset the password with the passcode.Isn't the solution to this requiring the Apple ID password to change/remove account even when the phone is unlocked?
People here are requesting that Apple makes it an option so that you can't do that, that you must have some other security factor to do account changes of any kind, really. The passcode is the one key that holds all the other keys.
It used to be that you reset the password with SMS 2-factor and you just had to request a code. Android I think still has this. In Android-land you would have a small chance you could transfer the SIM off the phone and cut off SMS access before they reset your password (maybe you could have a SIM-PIN set and reboot the phone remotely and require SIM-PIN on reboot? I don't know). In Apple-land you don't have even that much, passcode is enough to start ***** up a person's whole digital life. It's a reflection of single-point of failure, or SPOF as IT people call it.