TUCSON, Ariz. – Three Tucson High Magnet School students allegedly changed the grades of 50 students for extra cash and the whole lot may not graduate as a result.

School officials are investigation the cheating scandal after a teacher noticed late last week that the grades she entered into the computer for a credit recovery course were not correct and alerted administrator, the Arizona Daily Star reports.

MORE NEWS: From Classroom to Consulate Chef: Culinary Student Lands Dream Job at U.S. Embassy in Paris

“It appears a few students were able to get the teacher’s password,” Tucson Unified School District spokeswoman Stefanie Boe told the news site.

Boe speculated that students may have watched the teacher log in and remembered her password.

District officials told the site the cheating investigation is ongoing, and would not provide details, such as how much students paid for the alleged grade changes.

Regardless, TUSD Superintendent H.T. Sanchez said the students involved will not graduate until they make up the class this summer.

“There’s a right way of doing things – you work hard, you earn the grade and you pass the class,” Sanchez told the Daily Star. “And then there’s a wrong way, and there are consequences for doing things the wrong way and students are facing the ultimate consequence.

“Academic dishonestly is not tolerated,” he said.

MORE NEWS: Know These Before Moving From Cyprus To The UK

Senior Cesar Vidrio told KOLD a classmate offered to change his grade in the class for $50, but he declined. Others who accepted “were just chilling in class or they would just not go to class because they already passed it,” he said.

Another senior, Norma Quintero, agreed with the district’s decision to delay graduation for her classmates who participated in the scam, and called on officials to pursue criminal charges.

“There’s a lot more people that want to graduate and are actually like trying to, but they can’t when there’s these other people cheating their way to graduation,” she told KOLD.

Sanchez told the Daily Star that officials are also reviewing ways to make teacher passwords more secure, and noted that the students involved in the cheating represent a small fraction of the Class of 2016.

“By and large we’re graduation 3,000 students,” he said. “We have 50 who made bad decisions; the majority of our students work very hard, they earn their grades the right way and they walk across the stage with honor.”

Tucson Police Department Sgt. Pete Dugan told KOLD the students involved could face criminal charges, but his department has not been contacted by TUSD.

Leigh Ann Jimenez, a mother of an incoming freshman, said she also believes criminal charges are warranted against cheaters, but believes students who resisted the temptation should be commended.

“That’s how we should be raising our kids to be,” she told KOLD. “I really admire those students that had the nerve to say no.”