@nocobase/plugin-auth-sms 1.0.0-alpha.9 → 1.0.1-alpha.2
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/externalVersion.js
CHANGED
|
@@ -8,14 +8,15 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
module.exports = {
|
|
11
|
-
"@nocobase/client": "1.0.
|
|
11
|
+
"@nocobase/client": "1.0.1-alpha.2",
|
|
12
12
|
"react": "18.2.0",
|
|
13
13
|
"@formily/react": "2.3.0",
|
|
14
|
-
"@nocobase/plugin-auth": "1.0.
|
|
14
|
+
"@nocobase/plugin-auth": "1.0.1-alpha.2",
|
|
15
15
|
"antd": "5.12.8",
|
|
16
16
|
"react-i18next": "11.18.6",
|
|
17
|
-
"@nocobase/plugin-verification": "1.0.
|
|
18
|
-
"@nocobase/server": "1.0.
|
|
19
|
-
"@nocobase/
|
|
20
|
-
"@nocobase/
|
|
17
|
+
"@nocobase/plugin-verification": "1.0.1-alpha.2",
|
|
18
|
+
"@nocobase/server": "1.0.1-alpha.2",
|
|
19
|
+
"@nocobase/utils": "1.0.1-alpha.2",
|
|
20
|
+
"@nocobase/auth": "1.0.1-alpha.2",
|
|
21
|
+
"@nocobase/database": "1.0.1-alpha.2"
|
|
21
22
|
};
|
package/dist/locale/en-US.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"Sign in via SMS": "Sign in via SMS",
|
|
3
3
|
"User will be registered automatically if not exists.": "User will be registered automatically if not exists.",
|
|
4
|
-
"Sign up automatically when the user does not exist": "Sign up automatically when the user does not exist"
|
|
4
|
+
"Sign up automatically when the user does not exist": "Sign up automatically when the user does not exist",
|
|
5
|
+
"SMS": "SMS"
|
|
5
6
|
}
|
package/dist/locale/zh-CN.json
CHANGED
package/dist/server/plugin.js
CHANGED
|
@@ -33,6 +33,7 @@ module.exports = __toCommonJS(plugin_exports);
|
|
|
33
33
|
var import_server = require("@nocobase/server");
|
|
34
34
|
var import_constants = require("../constants");
|
|
35
35
|
var import_sms_auth = require("./sms-auth");
|
|
36
|
+
var import_utils = require("@nocobase/utils");
|
|
36
37
|
class PluginAuthSMSServer extends import_server.Plugin {
|
|
37
38
|
afterAdd() {
|
|
38
39
|
}
|
|
@@ -56,7 +57,8 @@ class PluginAuthSMSServer extends import_server.Plugin {
|
|
|
56
57
|
}
|
|
57
58
|
});
|
|
58
59
|
this.app.authManager.registerTypes(import_constants.authType, {
|
|
59
|
-
auth: import_sms_auth.SMSAuth
|
|
60
|
+
auth: import_sms_auth.SMSAuth,
|
|
61
|
+
title: (0, import_utils.tval)("SMS", { ns: import_constants.namespace })
|
|
60
62
|
});
|
|
61
63
|
}
|
|
62
64
|
async install(options) {
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"displayName.zh-CN": "认证:短信",
|
|
5
5
|
"description": "SMS authentication.",
|
|
6
6
|
"description.zh-CN": "通过短信验证码认证身份。",
|
|
7
|
-
"version": "1.0.
|
|
7
|
+
"version": "1.0.1-alpha.2",
|
|
8
8
|
"main": "./dist/server/index.js",
|
|
9
9
|
"homepage": "https://docs.nocobase.com/handbook/auth-sms",
|
|
10
10
|
"homepage.zh-CN": "https://docs-cn.nocobase.com/handbook/auth-sms",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"@nocobase/server": "1.x",
|
|
26
26
|
"@nocobase/test": "1.x"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "fc5a8e3c812516f787cb22d3d198f058f45b1963",
|
|
29
29
|
"keywords": [
|
|
30
30
|
"Authentication"
|
|
31
31
|
]
|