sumba 2.19.1 → 2.19.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.
@@ -17,7 +17,8 @@ async function personInCharge (opts = {}) {
17
17
  }, {
18
18
  name: 'picEmail',
19
19
  type: 'string',
20
- maxLength: 50
20
+ maxLength: 50,
21
+ rules: ['email']
21
22
  }]
22
23
  }
23
24
  }
@@ -14,9 +14,6 @@ async function user ({ req } = {}) {
14
14
  }
15
15
  },
16
16
  widget: {
17
- country: {
18
- component: 'form-select-ext'
19
- },
20
17
  token: {
21
18
  component: 'form-plaintext'
22
19
  }
@@ -21,7 +21,7 @@ const resetUserPassword = {
21
21
  } catch (err) {
22
22
  throw this.error('validationError', { details: err.details, values: err.values, ns: this.ns, statusCode: 422, code: 'DB_VALIDATION' })
23
23
  }
24
- const rec = await model.findOneRecord({ query: { username: req.body.username } })
24
+ const rec = await model.findOneRecord({ query: { username: req.body.username } }, { req })
25
25
  if (!rec) throw this.error('unknownUser', { details: [{ field: 'username', error: 'unknownUser' }], statusCode: 400 })
26
26
  await model.updateRecord(rec.id, { password: req.body.password }, { req, reply })
27
27
  form.password = ''
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sumba",
3
- "version": "2.19.1",
3
+ "version": "2.19.2",
4
4
  "description": "Biz Suite for Bajo Framework",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/wiki/CHANGES.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changes
2
2
 
3
+ ## 2026-04-18
4
+
5
+ - [2.19.2] Bug fix in ```sumba:personInCharge``` feature: add email rules
6
+ - [2.19.2] Bug fix in ```SumbaUser``` schema
7
+ - [2.19.2] Bug fix in ```reset-user-password``` route
8
+
3
9
  ## 2026-04-17
4
10
 
5
11
  - [2.19.1] Bug fix in profile edit's route