diff --git a/customize.dist/application_config.js b/customize.dist/application_config.js index a91267132..05d4356bb 100644 --- a/customize.dist/application_config.js +++ b/customize.dist/application_config.js @@ -37,5 +37,8 @@ define(function() { config.enableHistory = true; + //config.enablePinLimit = true; + //config.pinLimit = 1000; + return config; }); diff --git a/www/common/cryptpad-common.js b/www/common/cryptpad-common.js index 4c1e5c970..e55cfa6ba 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -721,7 +721,7 @@ define([ }; var getPinLimit = common.getPinLimit = function (cb) { - cb(void 0, 1000); + cb(void 0, typeof(AppConfig.pinLimit) === 'number'? AppConfig.pinLimit: 1000); }; var isOverPinLimit = common.isOverPinLimit = function (cb) {