I've never had this specific issue, but I've had it happen a few times where I've left my key in the room and have been able to get a replacement at the front desk without them confirming my identity in any way. Those are hotels I've never been back to.