1
0
mirror of https://github.com/bitwarden/web synced 2025-12-06 00:03:28 +00:00

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
2 changed files with 4 additions and 1 deletions

View File

@@ -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<boolean> {

View File

@@ -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<void>;
abstract unauthedHandler(qParams: any): Promise<void>;