From 37670779e54c510d9a48faa94c9807d8b558e4e7 Mon Sep 17 00:00:00 2001 From: huangxingguang <591269@gmail.com> Date: Sat, 19 Jun 2021 14:32:02 +0800 Subject: [PATCH] fix: some bugs --- src/components/SettingsTab.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/SettingsTab.component.ts b/src/components/SettingsTab.component.ts index 68e8b51..0886cf7 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) : pwd, port, user, + host: isEncrypt ? this.aesDecrypt(host, token) : host, port, user, auth: { password: isEncrypt ? this.aesEncrypt(pwd.toString(), token) : pwd, encryptType: isEncrypt ? 'AES' : 'NONE'