Twitter apologises for mass password reset error