@cocreate/users 1.36.5 → 1.36.7

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,18 @@
1
+ ## [1.36.7](https://github.com/CoCreate-app/CoCreate-users/compare/v1.36.6...v1.36.7) (2024-02-18)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * update accept invite error message ([65f0ac0](https://github.com/CoCreate-app/CoCreate-users/commit/65f0ac07fe9232997bd0bac4b8f5aec188601802))
7
+
8
+ ## [1.36.6](https://github.com/CoCreate-app/CoCreate-users/compare/v1.36.5...v1.36.6) (2024-02-17)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * forgot pasword dispatch success event ([9ed6ddf](https://github.com/CoCreate-app/CoCreate-users/commit/9ed6ddf6402eba3d793174ddfd5b01037f2f97ab))
14
+ * handling of uid ([5690f38](https://github.com/CoCreate-app/CoCreate-users/commit/5690f38fef046a0e24b21aea851f024861d631e0))
15
+
1
16
  ## [1.36.5](https://github.com/CoCreate-app/CoCreate-users/compare/v1.36.4...v1.36.5) (2024-02-16)
2
17
 
3
18
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/users",
3
- "version": "1.36.5",
3
+ "version": "1.36.7",
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"
@@ -281,7 +281,7 @@ class CoCreateUser {
281
281
  host: data.host,
282
282
  method: 'acceptInvite',
283
283
  success: false,
284
- message: "Token is invalid or has expired",
284
+ message: "The token is invalid or has expired. However, you can still access your account. Please request a new invite to proceed, and feel free to explore the available features while you wait.",
285
285
  organization_id: data.organization_id,
286
286
  uid
287
287
  }