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