Add Minimum PKDFB2 level check in firefox_addon

This commit is contained in:
Grégory Soutadé 2014-01-21 20:31:29 +01:00
parent 84eaf0c6a1
commit 8eee0060f6
2 changed files with 4 additions and 2 deletions

2
README
View File

@ -1,6 +1,6 @@
gPass : global Password. gPass : global Password.
Copyright (C) 2013 Grégory Soutadé Copyright (C) 2013-2014 Grégory Soutadé
Licence : GPL v3 Licence : GPL v3

View File

@ -165,7 +165,9 @@ function ask_server(field, logins, domain, wdomain, mkey, salt)
break; break;
case "pkdbf2_level": case "pkdbf2_level":
server_pkdbf2_level = parseInt(params[1].match(/\d+/)[0], 10); 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); debug("New pkdbf2 level " + server_pkdbf2_level);
pkdbf2_level = server_pkdbf2_level; pkdbf2_level = server_pkdbf2_level;