From ce1d010b855fea236916102230cf18499d656f45 Mon Sep 17 00:00:00 2001 From: Gregory Soutade Date: Wed, 19 Feb 2014 17:34:51 +0100 Subject: [PATCH] Warn when no password are unciphered using a masterkey Clear masterkey after "See" or "Add" action --- server/index.php | 4 ++-- server/ressources/gpass.js | 23 +++++++++++++++++------ 2 files changed, 19 insertions(+), 8 deletions(-) diff --git a/server/index.php b/server/index.php index a1baff8..3b43672 100644 --- a/server/index.php +++ b/server/index.php @@ -102,8 +102,8 @@ else } } echo "\n"; - echo ' Master key '; - echo "" . "\n"; + echo ' Master key '; + echo "" . "\n"; if (!isset($_SERVER['HTTPS'])) echo "
Current addon address is : http://" . $_SERVER['SERVER_NAME'] . "/" . $user . "
\n"; diff --git a/server/ressources/gpass.js b/server/ressources/gpass.js index 88e363b..d8cdf7f 100755 --- a/server/ressources/gpass.js +++ b/server/ressources/gpass.js @@ -219,10 +219,18 @@ function update_stats() div.appendChild(document.createElement("br")); } -function change_master_key() +function change_master_key(warning_unciphered) { + var nb_unciphered = 0; for(i=0; i