If she didn’t see her purity, she must finish the 40 days without praying or fasting.
A woman’s purity is determined either by dryness or by seeing the white thread-like discharge.

A month and 2 days ago a sister delivered her baby through a C-section, and she made an infection and she is obliged to take medicine; so she cannot fast. But she is asking about praying, because she is still having some yellowish discharge. Can she pray?

Menstruation and post-natal bleeding |