Generate a random API key on initial setup (fixes #1118)

Also makes the javascript implementation use the same algorithm for
generating random strings.
This commit is contained in:
Jakob Borg
2014-12-29 13:48:26 +01:00
parent 8c7f1421c6
commit 20d30a80be
4 changed files with 26 additions and 11 deletions

View File

@@ -994,7 +994,7 @@ angular.module('syncthing.core')
};
$scope.setAPIKey = function (cfg) {
cfg.APIKey = randomString(30, 32);
cfg.APIKey = randomString(32);
};
$scope.showURPreview = function () {