feat(apk): URL du depot affichee en forme courte + sync password quand le coffre vient de la synchro
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
+14
-5
@@ -341,6 +341,7 @@ type
|
||||
/// que le proprietaire ne connaitrait pas.
|
||||
procedure SetUnlockCode(const ANew: string);
|
||||
procedure PushUnlockMode;
|
||||
function PwdName: string;
|
||||
/// Va chercher l'icone du site de l'entree ouverte, ou l'efface.
|
||||
procedure SetEntryIcon(AFetch: Boolean);
|
||||
/// Le depot a bouge, ou ne l'a plus : LE DRAPEAU ET SON TEMOIN ENSEMBLE.
|
||||
@@ -545,7 +546,7 @@ begin
|
||||
if LCanOpen then
|
||||
begin
|
||||
if FRecover then
|
||||
Status('Screen lock changed - type your vault password')
|
||||
Status('Screen lock changed - type your ' + PwdName)
|
||||
else if VaultNeedsPin then
|
||||
Status('Vault on this device - unlock code required')
|
||||
else if VaultNeedsAuth then
|
||||
@@ -1807,7 +1808,7 @@ begin
|
||||
// que l'utilisateur ne retapera jamais a l'identique.
|
||||
if (Param('pw') = '1') and
|
||||
((FPlain = '') or (TNetEncoding.URL.Decode(Param('c')) <> CachePwd)) then
|
||||
WebCall('PM.toast("Wrong vault password")')
|
||||
WebCall('PM.toast("Wrong ' + PwdName + '")')
|
||||
else
|
||||
SetUnlockCode(TNetEncoding.URL.Decode(Param('c')));
|
||||
end
|
||||
@@ -2304,7 +2305,7 @@ begin
|
||||
begin
|
||||
Log('Recovery copy did not open under this password');
|
||||
ShowUnlock;
|
||||
StatusErr('Wrong vault password');
|
||||
StatusErr('Wrong ' + PwdName);
|
||||
WebCall('PM.focusPin()');
|
||||
Exit;
|
||||
end;
|
||||
@@ -2315,7 +2316,7 @@ begin
|
||||
FRecover := True;
|
||||
Log('Screen lock key destroyed - recovery copy available');
|
||||
ShowUnlock;
|
||||
StatusErr('Screen lock changed - type your vault password');
|
||||
StatusErr('Screen lock changed - type your ' + PwdName);
|
||||
WebCall('PM.focusPin()');
|
||||
Exit;
|
||||
end;
|
||||
@@ -2380,7 +2381,7 @@ begin
|
||||
begin
|
||||
if FPin = '' then
|
||||
begin
|
||||
StatusErr('Screen lock changed - type your vault password');
|
||||
StatusErr('Screen lock changed - type your ' + PwdName);
|
||||
WebCall('PM.focusPin()');
|
||||
Exit;
|
||||
end;
|
||||
@@ -3188,6 +3189,14 @@ begin
|
||||
LowerCase(BoolToStr(HasLocalContainer, True))]));
|
||||
end;
|
||||
|
||||
/// LE BON NOM POUR LE MOT DE PASSE QUI OUVRE CE COFFRE. Un coffre venu de la
|
||||
/// synchro s'ouvre au mot de passe de synchro ; l'appeler "vault password"
|
||||
/// envoyait chercher un mot de passe qui n'existe pas.
|
||||
function TForm8.PwdName: string;
|
||||
begin
|
||||
if HasLocalContainer then Result := 'vault password' else Result := 'sync password';
|
||||
end;
|
||||
|
||||
function TForm8.CachePwd: string;
|
||||
begin
|
||||
if HasLocalContainer then Result := FVaultPwd else Result := FSyncPwd;
|
||||
|
||||
Reference in New Issue
Block a user