瀏覽代碼

ADD: Re-enter the master password for verification

Alexander Koblov 7 年之前
父節點
當前提交
e0fdd05153
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      src/ucryptproc.pas

+ 5 - 0
src/ucryptproc.pas

@@ -371,6 +371,11 @@ begin
     if not ShowInputQuery(rsMsgMasterPassword, rsMsgMasterPasswordEnter, True, MasterKey) 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);
     if FMasterKeyHash = EmptyStr then
       begin