fix(apk): Save enregistre l'URL et le jeton tout de suite, sans attendre un telechargement

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
r-zakarya
2026-09-18 12:36:22 +01:00
parent a9640ab48f
commit 95c308107c
+11
View File
@@ -1812,6 +1812,17 @@ begin
begin begin
FUrl := TNetEncoding.URL.Decode(Param('u')).Trim; FUrl := TNetEncoding.URL.Decode(Param('u')).Trim;
FToken := TNetEncoding.URL.Decode(Param('t')).Trim; FToken := TNetEncoding.URL.Decode(Param('t')).Trim;
// SAVE ENREGISTRE. L'URL et le jeton n'etaient retenus qu'apres une
// reponse du depot : enregistres puis l'app fermee avant tout
// telechargement, ils avaient disparu au lancement suivant. Des valeurs
// fausses se corrigent comme elles se sont tapees ; seul le mot de passe
// de synchro reste hors de ce fichier (il n'y est pas protege).
if (FUrl <> '') and (FToken <> '') then
try
SaveDeviceSettings(FUrl, FToken);
except
on E: Exception do Log('settings not saved: ' + E.Message);
end;
FPwd := TNetEncoding.URL.Decode(Param('p')); FPwd := TNetEncoding.URL.Decode(Param('p'));
if FPwd <> FPwdShown then if FPwd <> FPwdShown then
begin begin