Learning provider Mathspace says more than a million people, including students, school staff, and parents have been affected by a data breach.