1
0
mirror of https://github.com/bitwarden/web synced 2025-12-11 05:43:16 +00:00

exposed passwords report for orgs

This commit is contained in:
Kyle Spearrin
2018-12-14 13:56:01 -05:00
parent 7a58f6d967
commit 392a90c02c
13 changed files with 139 additions and 35 deletions

View File

@@ -1,7 +1,27 @@
import { Component } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { Organization } from 'jslib/models/domain/organization';
import { UserService } from 'jslib/abstractions/user.service';
@Component({
selector: 'app-org-tools',
templateUrl: 'tools.component.html',
})
export class ToolsComponent { }
export class ToolsComponent {
organization: Organization;
accessReports = false;
constructor(private route: ActivatedRoute, private userService: UserService) { }
ngOnInit() {
this.route.parent.params.subscribe(async (params) => {
this.organization = await this.userService.getOrganization(params.organizationId);
// TODO: Maybe we want to just make sure they are not on a free plan? Just compare use2fa for now
// since all paid plans include use2fa
this.accessReports = this.organization.use2fa;
});
}
}