Skip to content

Commit

Permalink
Updated v1 component to persist the email on Continue click
Browse files Browse the repository at this point in the history
  • Loading branch information
trmartin4 committed Feb 13, 2025
1 parent b70dd0b commit 83e66fe
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions libs/angular/src/auth/components/login-v1.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,6 @@ export class LoginComponentV1 extends CaptchaProtectedComponent implements OnIni
return;
}

await this.saveEmailSettings();

try {
const credentials = new PasswordLoginCredentials(
this.formGroup.controls.email.value,
Expand Down Expand Up @@ -240,7 +238,6 @@ export class LoginComponentV1 extends CaptchaProtectedComponent implements OnIni
return;
}

await this.saveEmailSettings();
await this.router.navigate(["/login-with-device"]);
}

Expand Down Expand Up @@ -291,6 +288,7 @@ export class LoginComponentV1 extends CaptchaProtectedComponent implements OnIni
const emailValid = this.formGroup.get("email").valid;

if (emailValid) {
await this.saveEmailSettings();

Check warning on line 291 in libs/angular/src/auth/components/login-v1.component.ts

View check run for this annotation

Codecov / codecov/patch

libs/angular/src/auth/components/login-v1.component.ts#L291

Added line #L291 was not covered by tests
this.toggleValidateEmail(true);
await this.getLoginWithDevice(this.loggedEmail);
}
Expand Down

0 comments on commit 83e66fe

Please sign in to comment.