1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-27 12:36:14 +01:00

PM-1049 - Add empty login decryption options to desktop

This commit is contained in:
Jared Snider 2023-05-18 12:32:50 -04:00
parent c8794a3b01
commit 4d86244fa6
No known key found for this signature in database
GPG Key ID: A149DDD612516286
3 changed files with 29 additions and 0 deletions

View File

@ -8,6 +8,7 @@ import { AccessibilityCookieComponent } from "../auth/accessibility-cookie.compo
import { LoginGuard } from "../auth/guards/login.guard";
import { HintComponent } from "../auth/hint.component";
import { LockComponent } from "../auth/lock.component";
import { LoginDecryptionOptionsComponent } from "../auth/login/login-decryption-options/login-decryption-options.component";
import { LoginWithDeviceComponent } from "../auth/login/login-with-device.component";
import { LoginComponent } from "../auth/login/login.component";
import { RegisterComponent } from "../auth/register.component";
@ -37,6 +38,11 @@ const routes: Routes = [
component: LoginWithDeviceComponent,
},
{ path: "2fa", component: TwoFactorComponent },
{
path: "login-initiated",
component: LoginDecryptionOptionsComponent,
canActivate: [], // TODO: do I need an unauth guard like web?
},
{ path: "register", component: RegisterComponent },
{
path: "vault",

View File

@ -0,0 +1,22 @@
import { Component } from "@angular/core";
import { FormBuilder } from "@angular/forms";
import { BaseLoginDecryptionOptionsComponent } from "@bitwarden/angular/auth/components/base-login-decryption-options.component";
import { ApiService } from "@bitwarden/common/abstractions/api.service";
import { OrganizationService } from "@bitwarden/common/admin-console/abstractions/organization/organization.service.abstraction";
import { PolicyService } from "@bitwarden/common/admin-console/abstractions/policy/policy.service.abstraction";
@Component({
selector: "desktop-login-decryption-options",
templateUrl: "login-decryption-options.component.html",
})
export class LoginDecryptionOptionsComponent extends BaseLoginDecryptionOptionsComponent {
constructor(
formBuilder: FormBuilder,
apiService: ApiService,
organizationService: OrganizationService,
policyService: PolicyService
) {
super(formBuilder, apiService, organizationService, policyService);
}
}