@nocobase/plugin-users 0.9.0-alpha.2 → 0.9.1-alpha.1
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/README.md +9 -0
- package/README.zh-CN.md +9 -0
- package/lib/collections/users.js +2 -0
- package/lib/server.js +8 -0
- package/package.json +8 -8
package/README.md
ADDED
package/README.zh-CN.md
ADDED
package/lib/collections/users.js
CHANGED
package/lib/server.js
CHANGED
|
@@ -273,6 +273,14 @@ class UsersPlugin extends _server().Plugin {
|
|
|
273
273
|
|
|
274
274
|
const User = _this3.db.getCollection('users');
|
|
275
275
|
|
|
276
|
+
if (yield User.repository.findOne({
|
|
277
|
+
filter: {
|
|
278
|
+
email: rootEmail
|
|
279
|
+
}
|
|
280
|
+
})) {
|
|
281
|
+
return;
|
|
282
|
+
}
|
|
283
|
+
|
|
276
284
|
const user = yield User.repository.create({
|
|
277
285
|
values: {
|
|
278
286
|
email: rootEmail,
|
package/package.json
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/plugin-users",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.1-alpha.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "AGPL-3.0",
|
|
6
6
|
"main": "./lib/index.js",
|
|
7
7
|
"types": "./lib/index.d.ts",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@nocobase/actions": "0.9.
|
|
10
|
-
"@nocobase/database": "0.9.
|
|
11
|
-
"@nocobase/resourcer": "0.9.
|
|
12
|
-
"@nocobase/server": "0.9.
|
|
13
|
-
"@nocobase/utils": "0.9.
|
|
9
|
+
"@nocobase/actions": "0.9.1-alpha.1",
|
|
10
|
+
"@nocobase/database": "0.9.1-alpha.1",
|
|
11
|
+
"@nocobase/resourcer": "0.9.1-alpha.1",
|
|
12
|
+
"@nocobase/server": "0.9.1-alpha.1",
|
|
13
|
+
"@nocobase/utils": "0.9.1-alpha.1",
|
|
14
14
|
"json-templates": "^4.2.0",
|
|
15
15
|
"jsonwebtoken": "^8.5.1"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@nocobase/test": "0.9.
|
|
18
|
+
"@nocobase/test": "0.9.1-alpha.1",
|
|
19
19
|
"@types/jsonwebtoken": "^8.5.8"
|
|
20
20
|
},
|
|
21
|
-
"gitHead": "
|
|
21
|
+
"gitHead": "56cb184b00dc383b853015d525bf6e79dea92169"
|
|
22
22
|
}
|