FIX: Include missing search service on login modal (#24432)

This commit is contained in:
Isaac Janzen 2023-11-17 11:13:37 -07:00 committed by GitHub
parent 1e0de818e6
commit c55c354a13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -47,7 +47,7 @@
@otherMethodAllowed={{this.otherMethodAllowed}}
@showSecondFactor={{this.showSecondFactor}}
@handleForgotPassword={{this.handleForgotPassword}}
@login={{this.login}}
@login={{this.triggerLogin}}
@flashChanged={{this.flashChanged}}
@flashTypeChanged={{this.flashTypeChanged}}
@securityKeyCredentialChanged={{this.securityKeyCredentialChanged}}
@ -55,7 +55,7 @@
<Modal::Login::Footer
@canLoginLocal={{this.canLoginLocal}}
@showSecurityKey={{this.showSecurityKey}}
@login={{this.login}}
@login={{this.triggerLogin}}
@loginButtonLabel={{this.loginButtonLabel}}
@loginDisabled={{this.loginDisabled}}
@showSignupLink={{this.showSignupLink}}

View File

@ -23,6 +23,7 @@ export default class Login extends Component {
@service dialog;
@service siteSettings;
@service site;
@service login;
@tracked loggingIn = false;
@tracked loggedIn = false;
@ -173,7 +174,7 @@ export default class Login extends Component {
}
@action
async login() {
async triggerLogin() {
if (this.loginDisabled) {
return;
}