From c4a62dfd689900197833c1d9ed97d36d0cb17ca6 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Sun, 30 Jul 2023 19:36:06 +0200 Subject: [PATCH] Bugfix/remove stay signed in setting from local storage on sign in with fingerprint activation (#2196) * Remove staySignedIn from local storage * Update changelog --- CHANGELOG.md | 4 +++ .../pages/account/account-page.component.ts | 7 ++++ .../src/app/pages/account/account-page.html | 7 +++- apps/client/src/locales/messages.de.xlf | 36 +++++++++++-------- apps/client/src/locales/messages.es.xlf | 36 +++++++++++-------- apps/client/src/locales/messages.fr.xlf | 36 +++++++++++-------- apps/client/src/locales/messages.it.xlf | 36 +++++++++++-------- apps/client/src/locales/messages.nl.xlf | 36 +++++++++++-------- apps/client/src/locales/messages.pt.xlf | 36 +++++++++++-------- apps/client/src/locales/messages.xlf | 33 ++++++++++------- 10 files changed, 169 insertions(+), 98 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 606cc970a..846f9c433 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Added a step by step introduction for new users +### Fixed + +- Removed the _Stay signed in_ setting on _Sign in with fingerprint_ activation + ## 1.294.0 - 2023-07-29 ### Changed diff --git a/apps/client/src/app/pages/account/account-page.component.ts b/apps/client/src/app/pages/account/account-page.component.ts index 8f039b177..5ab140265 100644 --- a/apps/client/src/app/pages/account/account-page.component.ts +++ b/apps/client/src/app/pages/account/account-page.component.ts @@ -15,6 +15,10 @@ import { import { ActivatedRoute, Router } from '@angular/router'; import { CreateAccessDto } from '@ghostfolio/api/app/access/create-access.dto'; import { DataService } from '@ghostfolio/client/services/data.service'; +import { + STAY_SIGNED_IN, + SettingsStorageService +} from '@ghostfolio/client/services/settings-storage.service'; import { UserService } from '@ghostfolio/client/services/user/user.service'; import { WebAuthnService } from '@ghostfolio/client/services/web-authn.service'; import { getDateFormatString } from '@ghostfolio/common/helper'; @@ -80,6 +84,7 @@ export class AccountPageComponent implements OnDestroy, OnInit { private snackBar: MatSnackBar, private route: ActivatedRoute, private router: Router, + private settingsStorageService: SettingsStorageService, private stripeService: StripeService, private userService: UserService, public webAuthnService: WebAuthnService @@ -397,6 +402,8 @@ export class AccountPageComponent implements OnDestroy, OnInit { }) ) .subscribe(() => { + this.settingsStorageService.removeSetting(STAY_SIGNED_IN); + this.update(); }); } diff --git a/apps/client/src/app/pages/account/account-page.html b/apps/client/src/app/pages/account/account-page.html index 7f9fb57a5..fbf14544a 100644 --- a/apps/client/src/app/pages/account/account-page.html +++ b/apps/client/src/app/pages/account/account-page.html @@ -235,7 +235,12 @@