One doesn't need ID to check in online, and technically doesn't need ID to fly if one is willing to play TSA's "ID = "security" questions games".
You could have indeed checked your wife in at the kiosk and blown a raspberry to the AAgent. Probably unnecessary to do the latter...