Dodo codes are not permanent. They are generated for one online session and they expire and get reassigned to other people once you close your gate or your internet connection cuts out. The next time you invite via Dodo code, the code you get will be different. Dodo codes are mainly meant to give you control over who gets to visit your town during the following online session, in cases you don't want everyone in your friends list to show up.