Prechádzať zdrojové kódy

ADD: Re-enter the master password for verification

Alexander Koblov 7 rokov pred
rodič
commit
e0fdd05153
1 zmenil súbory, kde vykonal 5 pridanie a 0 odobranie
  1. 5 0
      src/ucryptproc.pas

+ 5 - 0
src/ucryptproc.pas

@@ -371,6 +371,11 @@ begin
     if not ShowInputQuery(rsMsgMasterPassword, rsMsgMasterPasswordEnter, True, MasterKey) then
     if not ShowInputQuery(rsMsgMasterPassword, rsMsgMasterPasswordEnter, True, MasterKey) then
       Exit;
       Exit;
     if Length(MasterKey) = 0 then Exit;
     if Length(MasterKey) = 0 then Exit;
+    if Length(FMasterKeyHash) = 0 then
+    repeat
+      if not ShowInputQuery(rsMsgMasterPassword, rsMsgPasswordVerify, True, MasterKeyHash) then
+        Exit;
+    until (MasterKey = MasterKeyHash);
     UpdateMasterKey(MasterKey, MasterKeyHash);
     UpdateMasterKey(MasterKey, MasterKeyHash);
     if FMasterKeyHash = EmptyStr then
     if FMasterKeyHash = EmptyStr then
       begin
       begin