Skip to content

Commit 3e67025

Browse files
committed
fix: fix ts errors
1 parent 9db637d commit 3e67025

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,9 @@ export default class TwoFactorsAuthPlugin extends AdminForthPlugin {
178178
if ( this.options.passkeys.allowLoginWithPasskeys !== false ) {
179179
this.options.passkeys.allowLoginWithPasskeys = true;
180180
if ( !this.adminforth.config.customization.loginPageInjections ) {
181-
this.adminforth.config.customization.loginPageInjections = { underLoginButton: [], panelHeader: [] };
182-
}
183-
this.adminforth.config.customization.loginPageInjections.underLoginButton.push({ file: this.componentPath('LoginWithPasskeyButton.vue'), meta: { afOrder: this.options.passkeys.continueWithButtonsOrder || 0 } });
181+
this.adminforth.config.customization.loginPageInjections = { underLoginButton: [], panelHeader: [], underInputs: [] };
182+
}
183+
(this.adminforth.config.customization.loginPageInjections.underLoginButton as Array<any>).push({ file: this.componentPath('LoginWithPasskeyButton.vue'), meta: { afOrder: this.options.passkeys.continueWithButtonsOrder || 0 } });
184184
}
185185
}
186186
}

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"license": "ISC",
2727
"dependencies": {
2828
"@simplewebauthn/server": "^13.2.1",
29-
"adminforth": "^2.9.2",
29+
"adminforth": "^2.4.0-next.221",
3030
"node-2fa": "^2.0.3"
3131
},
3232
"devDependencies": {

0 commit comments

Comments
 (0)