@rpcbase/server 0.88.0 → 0.89.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/package.json +1 -1
- package/src/auth/sign_in.js +1 -2
package/package.json
CHANGED
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
|
}
|