From 324b74d5a6c838ada874238c45f0f81d686533d1 Mon Sep 17 00:00:00 2001 From: Oscar Hinton Date: Wed, 7 Jul 2021 17:08:46 +0200 Subject: [PATCH] Fix organization policies not showin up in login/register (#1067) --- src/app/accounts/accept-organization.component.ts | 3 +++ src/app/common/base.accept.component.ts | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app/accounts/accept-organization.component.ts b/src/app/accounts/accept-organization.component.ts index 40708a4eb1..9f1759fef8 100644 --- a/src/app/accounts/accept-organization.component.ts +++ b/src/app/accounts/accept-organization.component.ts @@ -81,6 +81,8 @@ export class AcceptOrganizationComponent extends BaseAcceptComponent { timeout: 10000, }; this.toasterService.popAsync(toast); + + await this.stateService.remove('orgInvitation'); this.router.navigate(['/vault']); } @@ -90,6 +92,7 @@ export class AcceptOrganizationComponent extends BaseAcceptComponent { // Fix URL encoding of space issue with Angular this.orgName = this.orgName.replace(/\+/g, ' '); } + await this.stateService.save('orgInvitation', qParams); } private async performResetPasswordAutoEnroll(qParams: any): Promise { diff --git a/src/app/common/base.accept.component.ts b/src/app/common/base.accept.component.ts index 5d9273a16a..e94d7f5ea7 100644 --- a/src/app/common/base.accept.component.ts +++ b/src/app/common/base.accept.component.ts @@ -29,7 +29,7 @@ export abstract class BaseAcceptComponent implements OnInit { constructor(protected router: Router, protected toasterService: ToasterService, protected i18nService: I18nService, protected route: ActivatedRoute, - protected userService: UserService, private stateService: StateService) { } + protected userService: UserService, protected stateService: StateService) { } abstract authedHandler(qParams: any): Promise; abstract unauthedHandler(qParams: any): Promise;