Fixed resend codes functionality.
Merge pull request #1 from dkorolev/master

Fixed resend codes functionality.