mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 15:53:27 +00:00
PM-16653 remove idp auto submit login step 1 (#14847)
* PM-16653 remove idp auto submit login step 1 * remove config service mock * remove configservice from main.ts * edit test describes to be accurate * Update apps/browser/src/autofill/background/auto-submit-login.background.ts Co-authored-by: Jonathan Prusik <jprusik@users.noreply.github.com> --------- Co-authored-by: Jonathan Prusik <jprusik@users.noreply.github.com>
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import { Component, OnInit } from "@angular/core";
|
||||
|
||||
import { FeatureFlag } from "@bitwarden/common/enums/feature-flag.enum";
|
||||
import { AppComponent as BaseAppComponent } from "@bitwarden/web-vault/app/app.component";
|
||||
|
||||
import { ActivateAutofillPolicy } from "./admin-console/policies/activate-autofill.component";
|
||||
@@ -25,13 +24,8 @@ export class AppComponent extends BaseAppComponent implements OnInit {
|
||||
new ActivateAutofillPolicy(),
|
||||
]);
|
||||
|
||||
this.configService.getFeatureFlag(FeatureFlag.IdpAutoSubmitLogin).then((enabled) => {
|
||||
if (
|
||||
enabled &&
|
||||
!this.policyListService.getPolicies().some((p) => p instanceof AutomaticAppLoginPolicy)
|
||||
) {
|
||||
this.policyListService.addPolicies([new AutomaticAppLoginPolicy()]);
|
||||
}
|
||||
});
|
||||
if (!this.policyListService.getPolicies().some((p) => p instanceof AutomaticAppLoginPolicy)) {
|
||||
this.policyListService.addPolicies([new AutomaticAppLoginPolicy()]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user