@rpcbase/server 0.88.0 → 0.91.0
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/cli/run_docker.js +0 -2
- package/package.json +5 -4
- package/src/auth/sign_in.js +1 -2
package/cli/run_docker.js
CHANGED
|
@@ -3,8 +3,6 @@ const {execSync} = require("child_process")
|
|
|
3
3
|
const path = require("path")
|
|
4
4
|
const fs = require("fs")
|
|
5
5
|
|
|
6
|
-
const chalk = require("chalk")
|
|
7
|
-
|
|
8
6
|
const is_production = "yes" === process.env.INFRASTRUCTURE_IS_PRODUCTION
|
|
9
7
|
|
|
10
8
|
const run_docker = async(infrastructure_dir, proj_prefix) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rpcbase/server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.91.0",
|
|
4
4
|
"license": "SSPL-1.0",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"bin": {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"test": "echo \"Error: no test specified\" && exit 0"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@rpcbase/agent": "0.
|
|
13
|
+
"@rpcbase/agent": "0.11.0",
|
|
14
14
|
"@rpcbase/std": "0.3.0",
|
|
15
15
|
"body-parser": "1.20.0",
|
|
16
16
|
"bull": "4.8.5",
|
|
@@ -22,10 +22,11 @@
|
|
|
22
22
|
"express-session": "1.17.3",
|
|
23
23
|
"glob": "8.0.3",
|
|
24
24
|
"lodash": "4.17.21",
|
|
25
|
+
"mkdirp": "1.0.4",
|
|
25
26
|
"mongoose": "6.5.3",
|
|
26
27
|
"picocolors": "1.0.0",
|
|
27
|
-
"postmark": "3.0.
|
|
28
|
-
"redis": "4.
|
|
28
|
+
"postmark": "3.0.13",
|
|
29
|
+
"redis": "4.3.0",
|
|
29
30
|
"request-ip": "3.3.0",
|
|
30
31
|
"validator": "13.7.0",
|
|
31
32
|
"yargs": "17.5.1"
|
package/src/auth/sign_in.js
CHANGED
|
@@ -17,7 +17,6 @@ const sign_in = async({email, password}, ctx) => {
|
|
|
17
17
|
// const user = await User.findOne({email}, null, {ctx})
|
|
18
18
|
const user = await User.findOne({email}, null)
|
|
19
19
|
|
|
20
|
-
|
|
21
20
|
if (!user) {
|
|
22
21
|
return fail()
|
|
23
22
|
}
|
|
@@ -28,8 +27,8 @@ const sign_in = async({email, password}, ctx) => {
|
|
|
28
27
|
|
|
29
28
|
if (is_match) {
|
|
30
29
|
console.log("is match, user signed in wow")
|
|
31
|
-
req.session.user_id = user._id.toString()
|
|
32
30
|
await req.session.save()
|
|
31
|
+
console.log("rb:auth:user_signed_in")
|
|
33
32
|
return {
|
|
34
33
|
status: "ok"
|
|
35
34
|
}
|