The Senate unanimously passed a resolution Thursday requiring all senators and their staff to undergo sexual harassment training.

Senators, staff members and interns will have 60 days to complete the training and are required to repeat it each session of Congress. Senate offices will also have to submit certification to be published online that their offices' fulfilled the requirements.

The resolution, however, is not law and only applies to the Senate. Sen. Amy Klobuchar, D-Minn., a co-sponsor, called the measure a "first step" but added that it didn't go far enough, CNN reported.

The resolution passed amid allegations that GOP Senate hopeful Roy Moore of Alabama groped, kissed or pursued four women when they were teenagers, The Washington Post reported Thursday.

While the resolution passed the same day the accusations against Moore became public, senators introduced requirements for sexual misconduct training earlier this week.

"In the wake of so many scandals and reports of sexual harassment around the country, it’s critical that we continue do everything we can to prevent it." Sen. Chuck Grassley, R-Iowa, a co-sponsor, said in a statement.

Follow Ryan Miller on Twitter @RyanW_Miller