SAN DIEGO (AP) — A settlement will compel San Diego to show that elected officials and others have undergone sexual harassment prevention training in the wake of a scandal involving ex-Mayor Bob Filner.

The city admitted no liability in the settlement backed by the City Council, but it agreed to provide at least two hours of online training to supervisors, including elected and appointed officials, within six months of their hire, the U-T San Diego reported in Wednesday's editions.

The city must report to the state every six months for five years.

"It's imperative that employees all be treated fairly and feel safe coming to work," said Anna Caballero, state secretary of business, consumer services and housing.

San Diego City Attorney Jan Goldsmith told the newspaper that the city was glad to reach the settlement and would "diligently comply" with its terms.

The state filed a complaint against the city on Aug. 30 after Filner, facing widespread allegations of sexual harassment, said he never got any training.

Filner and 19 others in his office took their harassment training in July, after the scandal broke, with many missing the six-month state deadline to be trained, the U-T San Diego reported.

Filner, the city's first Democratic leader in 20 years, resigned less than nine months into a four-year term after nearly 20 women publicly identified themselves as targets of his unwanted advances, including kissing, groping and requests for dates. His accusers include a retired Navy rear admiral, a San DiegoStateUniversity dean and a great-grandmother who volunteers answering senior citizens' questions at City Hall.

Filner later pleaded guilty to one felony and two misdemeanors for placing a woman in a headlock, kissing another woman and grabbing the buttocks of a third.

He will begin his sentence of three months' home confinement in January.