@adminforth/login-captcha 1.1.7 → 1.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/index.ts +2 -2
- package/package.json +3 -3
- package/types.ts +2 -2
package/dist/index.js
CHANGED
|
@@ -21,7 +21,7 @@ export default class CaptchaPlugin extends AdminForthPlugin {
|
|
|
21
21
|
var _a, _b;
|
|
22
22
|
_super.modifyResourceConfig.call(this, adminforth, resourceConfig);
|
|
23
23
|
if (!((_a = adminforth.config.customization) === null || _a === void 0 ? void 0 : _a.loginPageInjections)) {
|
|
24
|
-
adminforth.config.customization = Object.assign(Object.assign({}, adminforth.config.customization), { loginPageInjections: { underInputs: [], panelHeader: [] } });
|
|
24
|
+
adminforth.config.customization = Object.assign(Object.assign({}, adminforth.config.customization), { loginPageInjections: { underInputs: [], underLoginButton: [], panelHeader: [] } });
|
|
25
25
|
}
|
|
26
26
|
;
|
|
27
27
|
const adapter = this.options.captchaAdapter;
|
package/index.ts
CHANGED
|
@@ -15,7 +15,7 @@ export default class CaptchaPlugin extends AdminForthPlugin {
|
|
|
15
15
|
if (!adminforth.config.customization?.loginPageInjections) {
|
|
16
16
|
adminforth.config.customization = {
|
|
17
17
|
...adminforth.config.customization,
|
|
18
|
-
loginPageInjections: { underInputs: [], panelHeader: [] }
|
|
18
|
+
loginPageInjections: { underInputs: [], underLoginButton: [], panelHeader: [] }
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
21
|
|
|
@@ -32,7 +32,7 @@ export default class CaptchaPlugin extends AdminForthPlugin {
|
|
|
32
32
|
pluginInstanceId: this.pluginInstanceId
|
|
33
33
|
}
|
|
34
34
|
});
|
|
35
|
-
|
|
35
|
+
|
|
36
36
|
if (!adminforth.config.customization?.customHeadItems) {
|
|
37
37
|
adminforth.config.customization.customHeadItems = [];
|
|
38
38
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adminforth/login-captcha",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.9",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
},
|
|
13
13
|
"keywords": [],
|
|
14
14
|
"author": "",
|
|
15
|
-
"license": "
|
|
15
|
+
"license": "MIT",
|
|
16
16
|
"description": "",
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"@types/node": "latest",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"typescript": "^5.7.3"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"adminforth": "^2.
|
|
24
|
+
"adminforth": "^2.30.0"
|
|
25
25
|
},
|
|
26
26
|
"release": {
|
|
27
27
|
"plugins": [
|
package/types.ts
CHANGED