Move getLoginWithDevice call to loadEmailSettings.

This commit is contained in:
Alec Rippberger 2024-10-18 09:37:59 -05:00
parent a49c4458d3
commit ee1929bcc9
No known key found for this signature in database
GPG Key ID: 9DD8DA583B28154A
1 changed files with 2 additions and 2 deletions

View File

@ -469,6 +469,8 @@ export class LoginComponent implements OnInit, OnDestroy {
this.formGroup.controls.rememberEmail.setValue(true); this.formGroup.controls.rememberEmail.setValue(true);
} }
} }
await this.getLoginWithDevice(this.emailFormControl.value);
} }
private focusInput() { private focusInput() {
@ -482,8 +484,6 @@ export class LoginComponent implements OnInit, OnDestroy {
} }
private async defaultOnInit(): Promise<void> { private async defaultOnInit(): Promise<void> {
await this.getLoginWithDevice(this.emailFormControl.value);
// If there's an existing org invite, use it to get the password policies // If there's an existing org invite, use it to get the password policies
const orgPolicies = await this.loginComponentService.getOrgPolicies(); const orgPolicies = await this.loginComponentService.getOrgPolicies();