Changing machine name regenerates API key
https://github.com/Nicd/code-stats/blob/master/web/models/machine.ex#L28 is always called on machine changes, including when machine name is changed. This leads to a different API key as the API salt is regenerated.
Changing machine name shouldn't touch API salt.