q-koa 11.6.0 → 11.6.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.
|
@@ -47,7 +47,7 @@ exports.login = async (ctx) => {
|
|
|
47
47
|
token,
|
|
48
48
|
user: app.appConfig.loginData
|
|
49
49
|
? lodash.omit(result.toJSON(), app.appConfig.loginData.omit)
|
|
50
|
-
: result,
|
|
50
|
+
: result.toJSON(),
|
|
51
51
|
})
|
|
52
52
|
}
|
|
53
53
|
if (
|
|
@@ -212,7 +212,7 @@ exports.login = async (ctx) => {
|
|
|
212
212
|
token,
|
|
213
213
|
user: app.appConfig.loginData
|
|
214
214
|
? lodash.omit(result.toJSON(), app.appConfig.loginData.omit)
|
|
215
|
-
: result,
|
|
215
|
+
: result.toJSON(),
|
|
216
216
|
})
|
|
217
217
|
}
|
|
218
218
|
|
|
@@ -432,7 +432,7 @@ exports.checkLogin = async (ctx) => {
|
|
|
432
432
|
token,
|
|
433
433
|
user: app.appConfig.loginData
|
|
434
434
|
? lodash.omit(result.toJSON(), app.appConfig.loginData.omit)
|
|
435
|
-
: result,
|
|
435
|
+
: result.toJSON(),
|
|
436
436
|
})
|
|
437
437
|
}
|
|
438
438
|
|