1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 00:33:44 +00:00

handle browser routing and basic browser template

This commit is contained in:
rr-bw
2024-09-09 14:45:55 -07:00
parent 81a623d998
commit bdd6f9f6df
6 changed files with 62 additions and 9 deletions

View File

@@ -62,6 +62,7 @@ export class LoginComponentV2 implements OnInit, OnDestroy {
captcha: CaptchaIFrame;
captchaToken: string = null;
clientType: ClientType;
ClientType = ClientType;
registerRoute$ = this.registerRouteService.registerRoute$(); // TODO: remove when email verification flag is removed
showLoginWithDevice = false;
validatedEmail = false;
@@ -140,7 +141,7 @@ export class LoginComponentV2 implements OnInit, OnDestroy {
this.destroy$.complete();
}
submit = async (showToast: boolean): Promise<void> => {
submit = async (showToast = true): Promise<void> => {
const data = this.formGroup.value;
await this.setupCaptcha();
@@ -153,6 +154,8 @@ export class LoginComponentV2 implements OnInit, OnDestroy {
}
// Web specific (end)
// TODO-rr-bw: handle toast here for Browser/Desktop? See base LoginComponent -> submit()
const credentials = new PasswordLoginCredentials(
data.email,
data.masterPassword,