1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 09:13:33 +00:00

[PS-616] [PS-795] Fix/withdraw master password reset without user verification (#2845)

* Limit enroll MPR modal to enrolling

* Withdraw from MPR directly from org options

* [PS-795] Fix Automatic mpr enrollment.

Add reset password key to the accept request

* Linter

* Specify params type in accept components
This commit is contained in:
Matt Gibson
2022-06-08 14:56:26 -05:00
committed by GitHub
parent a65d7370d4
commit d5112cc8cb
11 changed files with 102 additions and 96 deletions

View File

@@ -1,5 +1,5 @@
import { Component } from "@angular/core";
import { ActivatedRoute, Router } from "@angular/router";
import { ActivatedRoute, Params, Router } from "@angular/router";
import { ApiService } from "jslib-common/abstractions/api.service";
import { I18nService } from "jslib-common/abstractions/i18n.service";
@@ -31,7 +31,7 @@ export class AcceptProviderComponent extends BaseAcceptComponent {
super(router, platformUtilService, i18nService, route, stateService);
}
async authedHandler(qParams: any) {
async authedHandler(qParams: Params) {
const request = new ProviderUserAcceptRequest();
request.token = qParams.token;
@@ -49,7 +49,7 @@ export class AcceptProviderComponent extends BaseAcceptComponent {
this.router.navigate(["/vault"]);
}
async unauthedHandler(qParams: any) {
async unauthedHandler(qParams: Params) {
this.providerName = qParams.providerName;
}
}

View File

@@ -1,4 +1,5 @@
import { Component } from "@angular/core";
import { Params } from "@angular/router";
import { BaseAcceptComponent } from "src/app/common/base.accept.component";
@@ -12,11 +13,11 @@ export class SetupProviderComponent extends BaseAcceptComponent {
requiredParameters = ["providerId", "email", "token"];
async authedHandler(qParams: any) {
async authedHandler(qParams: Params) {
this.router.navigate(["/providers/setup"], { queryParams: qParams });
}
async unauthedHandler(qParams: any) {
async unauthedHandler(qParams: Params) {
// Empty
}
}