If she has an affair - cheats on the husband - and dupes him about the parentage, she is unfit.
Same goes for the father, of course.
In any case - if she doesn’t forfeit custody of the child, she should forfeit control over the money.
She is unfit to be a good wife, but not necessarily unfit to be a good mother.