Rename RawAPIKey -> APIKey in GUIConfiguration

This commit is contained in:
Jakob Borg
2016-02-02 11:12:25 +01:00
parent 5d4bfdabd6
commit e93c766c42
4 changed files with 8 additions and 8 deletions

View File

@@ -229,8 +229,8 @@ func (cfg *Configuration) prepare(myID protocol.DeviceID) {
cfg.Options.ReconnectIntervalS = 5
}
if cfg.GUI.RawAPIKey == "" {
cfg.GUI.RawAPIKey = randomString(32)
if cfg.GUI.APIKey == "" {
cfg.GUI.APIKey = randomString(32)
}
}