1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-11 14:04:03 +00:00

refactor(email-verification-feature-flag): [PM-7882] Email Verification - Updated function to use form control instead of function.

This commit is contained in:
Patrick Pimentel
2025-01-06 11:10:12 -05:00
parent d47fe66f1e
commit f9231661c2

View File

@@ -222,7 +222,7 @@ export class LoginComponentV1 extends BaseLoginComponent implements OnInit, OnDe
}
// Save off email for SSO
await this.ssoLoginService.setSsoEmail(this.loggedEmail);
await this.ssoLoginService.setSsoEmail(this.formGroup.controls.email.value);
// Generate necessary sso params
const passwordOptions: any = {
@@ -241,6 +241,7 @@ export class LoginComponentV1 extends BaseLoginComponent implements OnInit, OnDe
// Save sso params
await this.ssoLoginService.setSsoState(state);
await this.ssoLoginService.setCodeVerifier(ssoCodeVerifier);
try {
await ipc.platform.localhostCallbackService.openSsoPrompt(codeChallenge, state);
} catch (err) {