In iOS 17, Apple will allow iPhone users who forgot their new passcode to change it again using the previous passcode within 72 hours of the change.