diff --git a/src/components/SettingsTab.component.ts b/src/components/SettingsTab.component.ts index 0886cf7..b8068a4 100644 --- a/src/components/SettingsTab.component.ts +++ b/src/components/SettingsTab.component.ts @@ -157,7 +157,7 @@ export class SyncConfigSettingsTabComponent implements OnInit { const pwd = await this.passwordStorage.loadPassword({ host, port, user }); if (!pwd) continue; infos.push({ - host: isEncrypt ? this.aesDecrypt(host, token) : host, port, user, + host, port, user, auth: { password: isEncrypt ? this.aesEncrypt(pwd.toString(), token) : pwd, encryptType: isEncrypt ? 'AES' : 'NONE'