q-koa 12.1.7 → 12.2.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.
@@ -128,6 +128,7 @@ exports.checkLogin = async (ctx) => {
128
128
  const result = await app.model.administrator.findOne({
129
129
  where: {
130
130
  id: ctx.request[`${appName}-user`].id,
131
+ name: ctx.request[`${appName}-user`].name || '',
131
132
  password: ctx.request[`${appName}-user`].password || '',
132
133
  },
133
134
  attributes: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "q-koa",
3
- "version": "12.1.7",
3
+ "version": "12.2.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {