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

handle startAuthRequestLogin()

This commit is contained in:
rr-bw
2024-08-31 14:17:09 -07:00
parent 0cd840e6ae
commit 983cee8af6
2 changed files with 14 additions and 0 deletions

View File

@@ -181,6 +181,18 @@ export class LoginComponentV2 implements OnInit, OnDestroy {
return true;
}
protected async startAuthRequestLogin() {
this.formGroup.get("masterPassword")?.clearValidators();
this.formGroup.get("masterPassword")?.updateValueAndValidity();
if (!this.formGroup.valid) {
return;
}
await this.saveEmailSettings();
await this.router.navigate(["/login-with-device"]);
}
protected async validateEmail(): Promise<void> {
this.formGroup.controls.email.markAsTouched();
const emailValid = this.formGroup.controls.email.valid;