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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user