I mean, she did it. She needed to go. There's a reason members of Congress are banned from sleeping with their staffs due to the innate power imbalance that exists.
There's a separate issue if it was wise to release the nude photos publicly, including what would have been uncensored electronic sharing among parties that do not appear to have all been members of the media. Hopefully they had some legal counsel oversight.