بسم الله الرحمن الرحيم
(Fatwa: 885/870/=09/1437)
It is not good to develop the habit of taking bath in the corridor. However if one has to take a bath there occasionally then one should wrap some thick and loose cloth from navel to knees which does not expose the structure of body and after pouring water over the body the colour of the body does not reflect. In case women and girls pass from that corridor then one should be extra cautious and careful.
Allah knows Best!
Darul Ifta,
Darul Uloom Deoband