United Airlines had to change the keypad codes to enter cockpits doors after they were accidentally posted online.