From 3fe0baa956df3967c29a3aee4b21e4ec3aab150d Mon Sep 17 00:00:00 2001 From: ansuz Date: Tue, 4 Jul 2017 15:50:52 +0200 Subject: [PATCH] disable pin limit caching --- www/common/cryptpad-common.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/www/common/cryptpad-common.js b/www/common/cryptpad-common.js index 949865052..96061b499 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -832,7 +832,9 @@ define([ if (!pinsReady()) { return void cb('RPC_NOT_READY'); } var account = common.account; - if (typeof(account.limit) !== 'number' || + + var ALWAYS_REVALIDATE = true; + if (ALWAYS_REVALIDATE || typeof(account.limit) !== 'number' || typeof(account.plan) !== 'string' || typeof(account.note) !== 'string') { return void rpc.getLimit(function (e, limit, plan, note) {