@cocreate/users 1.36.5 → 1.36.6

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/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## [1.36.6](https://github.com/CoCreate-app/CoCreate-users/compare/v1.36.5...v1.36.6) (2024-02-17)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * forgot pasword dispatch success event ([9ed6ddf](https://github.com/CoCreate-app/CoCreate-users/commit/9ed6ddf6402eba3d793174ddfd5b01037f2f97ab))
7
+ * handling of uid ([5690f38](https://github.com/CoCreate-app/CoCreate-users/commit/5690f38fef046a0e24b21aea851f024861d631e0))
8
+
1
9
  ## [1.36.5](https://github.com/CoCreate-app/CoCreate-users/compare/v1.36.4...v1.36.5) (2024-02-16)
2
10
 
3
11
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/users",
3
- "version": "1.36.5",
3
+ "version": "1.36.6",
4
4
  "description": "A simple users component in vanilla javascript. Easily configured using HTML5 attributes and/or JavaScript API.",
5
5
  "keywords": [
6
6
  "users",
package/src/client.js CHANGED
@@ -351,7 +351,8 @@ const CoCreateUser = {
351
351
  }
352
352
 
353
353
  Crud.socket.send(request).then((response) => {
354
- console.log('forgot password', response)
354
+ if (response.success)
355
+ document.dispatchEvent(new CustomEvent('forgotPassword'));
355
356
  render({
356
357
  selector: "[template*='forgotPassword']",
357
358
  data: [{
package/src/server.js CHANGED
@@ -159,7 +159,7 @@ class CoCreateUser {
159
159
  try {
160
160
  const inviteId = this.crud.ObjectId().toString()
161
161
  let uid = data.uid
162
- data.uid = data.uid + '-inv'
162
+ delete data.uid
163
163
 
164
164
  data.method = 'object.update'
165
165
  data.array = "users"