From 8eee0060f6e0abbaf32b9e6a0b1e7b7a1e0e9559 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Soutad=C3=A9?= Date: Tue, 21 Jan 2014 20:31:29 +0100 Subject: [PATCH] Add Minimum PKDFB2 level check in firefox_addon --- README | 2 +- firefox_addon/lib/main.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README b/README index a207716..f87a595 100644 --- a/README +++ b/README @@ -1,6 +1,6 @@ gPass : global Password. -Copyright (C) 2013 Grégory Soutadé +Copyright (C) 2013-2014 Grégory Soutadé Licence : GPL v3 diff --git a/firefox_addon/lib/main.js b/firefox_addon/lib/main.js index e08b7a1..6e4f607 100644 --- a/firefox_addon/lib/main.js +++ b/firefox_addon/lib/main.js @@ -165,7 +165,9 @@ function ask_server(field, logins, domain, wdomain, mkey, salt) break; case "pkdbf2_level": server_pkdbf2_level = parseInt(params[1].match(/\d+/)[0], 10); - if (server_pkdbf2_level != NaN && server_pkdbf2_level != pkdbf2_level) + if (server_pkdbf2_level != NaN && + server_pkdbf2_level != pkdbf2_level && + server_pkdbf2_level >= 1000) { debug("New pkdbf2 level " + server_pkdbf2_level); pkdbf2_level = server_pkdbf2_level;