Archived
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:
1 parent
8c7f1421c6
commit
20d30a80be
4 files changed
+26
-11
No files matched your search
@@ -994,7 +994,7 @@ angular.module('syncthing.core')
|
||||
};
|
||||
|
||||
$scope.setAPIKey = function (cfg) {
|
||||
cfg.APIKey = randomString(30, 32);
|
||||
cfg.APIKey = randomString(32);
|
||||
};
|
||||
|
||||
$scope.showURPreview = function () {
|
||||
|
||||
Reference in new issue
Block a user