@cocreate/users 1.37.4 → 1.37.5
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 +7 -0
- package/package.json +1 -1
- package/src/client.js +1 -1
- package/src/server.js +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [1.37.5](https://github.com/CoCreate-app/CoCreate-users/compare/v1.37.4...v1.37.5) (2024-08-24)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* handling session not true or false ([e4991be](https://github.com/CoCreate-app/CoCreate-users/commit/e4991beeaa3832ed9b76ecd664669da3cb0a21a3))
|
|
7
|
+
|
|
1
8
|
## [1.37.4](https://github.com/CoCreate-app/CoCreate-users/compare/v1.37.3...v1.37.4) (2024-07-05)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
package/src/client.js
CHANGED
|
@@ -216,7 +216,7 @@ const CoCreateUser = {
|
|
|
216
216
|
}
|
|
217
217
|
|
|
218
218
|
if (data.userStatus) {
|
|
219
|
-
let sessionElements = document.querySelectorAll('[session]:not([
|
|
219
|
+
let sessionElements = document.querySelectorAll('[session]:not([session="true"], [session="false"])');
|
|
220
220
|
for (let i = 0; i < sessionElements.length; i++)
|
|
221
221
|
sessionElements[i].setAttribute('session', data.userStatus)
|
|
222
222
|
}
|
package/src/server.js
CHANGED
|
@@ -160,6 +160,7 @@ class CoCreateUser {
|
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
162
|
|
|
163
|
+
// TODO: email or phone param refrencing the object to execute via api
|
|
163
164
|
async inviteUser(data) {
|
|
164
165
|
try {
|
|
165
166
|
const inviteId = this.crud.ObjectId().toString()
|
|
@@ -310,7 +311,7 @@ class CoCreateUser {
|
|
|
310
311
|
}
|
|
311
312
|
}
|
|
312
313
|
|
|
313
|
-
|
|
314
|
+
// TODO: email or phone param refrencing the object to execute via api
|
|
314
315
|
async forgotPassword(data) {
|
|
315
316
|
const self = this;
|
|
316
317
|
try {
|
|
@@ -374,7 +375,7 @@ class CoCreateUser {
|
|
|
374
375
|
"To": data.email,
|
|
375
376
|
"Subject": "Reset Your Password Easily",
|
|
376
377
|
"HtmlBody": htmlBody,
|
|
377
|
-
"TextBody": "Hello, \n\nWe received a request to reset the password for your account.If you did not make this request, please ignore this email.Otherwise, you can reset your password by copying and pasting the following link into your browser: https://example.com/reset-password\n\nThis link will expire in 24 hours for your security.\n\nNeed more help? Our support team is here for you at support@example.com.\n\nThank you for using our services!\n\nBest regards,\nThe [Your Company] Team",
|
|
378
|
+
"TextBody": "Hello, \n\nWe received a request to reset the password for your account. If you did not make this request, please ignore this email. Otherwise, you can reset your password by copying and pasting the following link into your browser: https://example.com/reset-password\n\nThis link will expire in 24 hours for your security.\n\nNeed more help? Our support team is here for you at support@example.com.\n\nThank you for using our services!\n\nBest regards,\nThe [Your Company] Team",
|
|
378
379
|
"MessageStream": "outbound"
|
|
379
380
|
},
|
|
380
381
|
organization_id: data.organization_id
|