When the diode terminals are shorted together, some holes (majority carriers) in the p-side have enough thermal energy to overcome the potential barrier. Such carriers cross the barrier potential and contribute to current. This current is known as the forward current.