mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 00:33:44 +00:00
handle startAuthRequestLogin()
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user