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

setup new LoginComponent files in libs/auth

This commit is contained in:
rr-bw
2024-08-20 15:30:15 -07:00
parent dedd7f1b5c
commit af9483d480
6 changed files with 152 additions and 15 deletions

View File

@@ -266,6 +266,7 @@ export class LoginComponent extends CaptchaProtectedComponent implements OnInit,
async validateEmail() {
this.formGroup.controls.email.markAsTouched();
const emailValid = this.formGroup.get("email").valid;
if (emailValid) {
this.toggleValidateEmail(true);
await this.getLoginWithDevice(this.loggedEmail);
@@ -299,6 +300,7 @@ export class LoginComponent extends CaptchaProtectedComponent implements OnInit,
// Try to load from memory first
const email = this.loginEmailService.getEmail();
const rememberEmail = this.loginEmailService.getRememberEmail();
if (email) {
this.formGroup.controls.email.setValue(email);
this.formGroup.controls.rememberEmail.setValue(rememberEmail);