Fix organization policies not showin up in login/register (#1067)

This commit is contained in:
Oscar Hinton 2021-07-07 17:08:46 +02:00 committed by GitHub
parent c494cab234
commit 324b74d5a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -81,6 +81,8 @@ export class AcceptOrganizationComponent extends BaseAcceptComponent {
timeout: 10000, timeout: 10000,
}; };
this.toasterService.popAsync(toast); this.toasterService.popAsync(toast);
await this.stateService.remove('orgInvitation');
this.router.navigate(['/vault']); this.router.navigate(['/vault']);
} }
@ -90,6 +92,7 @@ export class AcceptOrganizationComponent extends BaseAcceptComponent {
// Fix URL encoding of space issue with Angular // Fix URL encoding of space issue with Angular
this.orgName = this.orgName.replace(/\+/g, ' '); this.orgName = this.orgName.replace(/\+/g, ' ');
} }
await this.stateService.save('orgInvitation', qParams);
} }
private async performResetPasswordAutoEnroll(qParams: any): Promise<boolean> { private async performResetPasswordAutoEnroll(qParams: any): Promise<boolean> {

View File

@ -29,7 +29,7 @@ export abstract class BaseAcceptComponent implements OnInit {
constructor(protected router: Router, protected toasterService: ToasterService, constructor(protected router: Router, protected toasterService: ToasterService,
protected i18nService: I18nService, protected route: ActivatedRoute, protected i18nService: I18nService, protected route: ActivatedRoute,
protected userService: UserService, private stateService: StateService) { } protected userService: UserService, protected stateService: StateService) { }
abstract authedHandler(qParams: any): Promise<void>; abstract authedHandler(qParams: any): Promise<void>;
abstract unauthedHandler(qParams: any): Promise<void>; abstract unauthedHandler(qParams: any): Promise<void>;