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

handle loading email settings

This commit is contained in:
rr-bw
2024-08-21 14:54:07 -07:00
parent af91d39c57
commit 2b90cbb3e5
4 changed files with 33 additions and 9 deletions

View File

@@ -103,12 +103,14 @@ export class LoginComponent extends CaptchaProtectedComponent implements OnInit,
const queryParamsEmail = params.email;
// If there is an email in the query params, set that email as the form field value
if (queryParamsEmail != null && queryParamsEmail.indexOf("@") > -1) {
this.formGroup.controls.email.setValue(queryParamsEmail);
this.paramEmailSet = true;
}
});
// if there is no email in the query params, attempt to load email settings from loginEmailService
if (!this.paramEmailSet) {
await this.loadEmailSettings();
}