sumba 2.7.1 → 2.7.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.
- package/index.js +1 -1
- package/package.json +1 -1
- package/wiki/CHANGES.md +1 -0
package/index.js
CHANGED
|
@@ -228,7 +228,7 @@ async function factory (pkgName) {
|
|
|
228
228
|
await model.validate({ username, password }, null, { partial: true, ns: ['sumba', 'dobo'], fields: ['username', 'password'] })
|
|
229
229
|
const bcrypt = await importPkg('bajoExtra:bcrypt')
|
|
230
230
|
|
|
231
|
-
const query = { username, provider: 'local' }
|
|
231
|
+
const query = { username, provider: 'local', siteId: req.site.id }
|
|
232
232
|
const rows = await model.findRecord({ query }, { req, forceNoHidden: true, noHook: true })
|
|
233
233
|
if (rows.length === 0) throw this.error('validationError', { details: [{ field: 'username', error: 'Unknown username' }], statusCode: 401 })
|
|
234
234
|
const rec = rows[0]
|
package/package.json
CHANGED