$token -> $code

See: https://github.com/dektrium/yii2-user/blob/9f73543d143021ffe1089b4b310d859f41bfd88c/models/Token.php#L62
Merge pull request #127 from mrarthur/patch-1

$token -> $code