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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sumba",
3
- "version": "2.7.1",
3
+ "version": "2.7.2",
4
4
  "description": "Biz Suite for Bajo Framework",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/wiki/CHANGES.md CHANGED
@@ -3,6 +3,7 @@
3
3
  ## 2026-03-07
4
4
 
5
5
  - [2.7.1] Bug fix on ```site``` attachment
6
+ - [2.7.1] Bug fix on ```getUserFromUsernamePassword()```
6
7
 
7
8
  ## 2026-03-05
8
9