ADD: Re-enter the master password for verification

This commit is contained in:
Alexander Koblov 2018-07-24 20:00:19 +00:00
commit e0fdd05153

View file

@ -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