unless the woman is in uniform as well, it has no bearing on UCMJ with regard to this case, as I understand it. Even if she is, all that happens is that she gets booted too, presumably.
bttt
After I finished graduate school in 1989 I rented my house in the college town to a West Point graduate (major) who had recently resigned his commission. He was newly married to a woman who apparently had been a GS-14 civilian employee of the Army. They were a very odd couple, very concerned about their privacy and about his former wife finding out anything about them, including where they were living. I later found out that he had been married to the daughter of a general and had been caught red-handed (?) in an affair with the woman (who he married after his wife divorced him). It appeared that the affair finished both his and his former-civil service employee wife's careers.