From b64a61ab339ffb961a5377c22e5221cf6434b59b Mon Sep 17 00:00:00 2001 From: zhaojisen <1301338853@qq.com> Date: Wed, 15 Apr 2026 18:00:48 +0800 Subject: [PATCH] fix: modify remember password through config --- .../connect-dialog/select-account/select-account.component.ts | 2 +- src/app/services/app.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/elements/connect/connect-dialog/select-account/select-account.component.ts b/src/app/elements/connect/connect-dialog/select-account/select-account.component.ts index cfb7a6a4c..8d23781bf 100644 --- a/src/app/elements/connect/connect-dialog/select-account/select-account.component.ts +++ b/src/app/elements/connect/connect-dialog/select-account/select-account.component.ts @@ -57,7 +57,7 @@ export class ElementSelectAccountComponent implements OnInit, OnDestroy { private _cdRef: ChangeDetectorRef ) { this.usernamePlaceholder = this._i18n.instant('Username'); - this.rememberAuthDisabled = false; + this.rememberAuthDisabled = !this._settingSvc.globalSetting.SECURITY_LUNA_REMEMBER_AUTH; } get noSecretAccounts() { diff --git a/src/app/services/app.ts b/src/app/services/app.ts index 52875963a..37ba9aa1e 100644 --- a/src/app/services/app.ts +++ b/src/app/services/app.ts @@ -362,7 +362,7 @@ export class AppService { newAuth.alias = account.alias; } - if (!auth.secret || !auth.rememberAuth) { + if (!auth.secret || !auth.rememberAuth || !this._settingSvc.globalSetting.SECURITY_LUNA_REMEMBER_AUTH) { newAuth.secret = ''; } else { newAuth.secret = this.encrypt(auth.secret);