It should have been 1-0 Portugal.

Penalty awarded to Iran was a dubious decision by the referee. It was not a hand ball as seen from numerous video replays.