Skip to content

Commit 6774185

Browse files
committed
fix: Fix the issue where automatic connection cannot be selected
1 parent c768b7f commit 6774185

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/app/elements/connect/connect-dialog/select-account/select-account.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export class ElementSelectAccountComponent implements OnInit, OnDestroy {
5757
private _cdRef: ChangeDetectorRef
5858
) {
5959
this.usernamePlaceholder = this._i18n.instant('Username');
60-
this.rememberAuthDisabled = !this._settingSvc.globalSetting.SECURITY_LUNA_REMEMBER_AUTH;
60+
this.rememberAuthDisabled = false;
6161
}
6262

6363
get noSecretAccounts() {

src/app/services/app.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@ export class AppService {
258258
connectOption,
259259
direct: connectData.direct
260260
};
261+
261262
this.setAccountLocalAuth(asset, account, manualAuthInfo);
262263
this._localStorage.set(key, saveData);
263264
}
@@ -346,7 +347,7 @@ export class AppService {
346347
newAuth.alias = account.alias;
347348
}
348349

349-
if (!auth.secret || !auth.rememberAuth || !this._settingSvc.globalSetting.SECURITY_LUNA_REMEMBER_AUTH) {
350+
if (!auth.secret || !auth.rememberAuth) {
350351
newAuth.secret = '';
351352
} else {
352353
newAuth.secret = this.encrypt(auth.secret);

0 commit comments

Comments
 (0)