Teacher hacking incident sparks controversy