@cocreate/users 1.31.1 → 1.31.3
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 +14 -0
- package/package.json +1 -1
- package/src/client.js +5 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [1.31.3](https://github.com/CoCreate-app/CoCreate-users/compare/v1.31.2...v1.31.3) (2023-12-20)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* set user_id as key_id ([7627677](https://github.com/CoCreate-app/CoCreate-users/commit/7627677b0260de7d26ba62d6ba7c8d2458d7123f))
|
|
7
|
+
|
|
8
|
+
## [1.31.2](https://github.com/CoCreate-app/CoCreate-users/compare/v1.31.1...v1.31.2) (2023-12-18)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* render import ([d9dfbf1](https://github.com/CoCreate-app/CoCreate-users/commit/d9dfbf15de5ef87693379a3958bb662b56b3eef8))
|
|
14
|
+
|
|
1
15
|
## [1.31.1](https://github.com/CoCreate-app/CoCreate-users/compare/v1.31.0...v1.31.1) (2023-12-05)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
package/src/client.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import Crud from '@cocreate/crud-client';
|
|
3
3
|
import Actions from '@cocreate/actions';
|
|
4
4
|
import Elements from '@cocreate/elements';
|
|
5
|
-
import render from '@cocreate/render';
|
|
5
|
+
import { render } from '@cocreate/render';
|
|
6
6
|
import '@cocreate/element-prototype';
|
|
7
7
|
import './index.css';
|
|
8
8
|
|
|
@@ -47,6 +47,7 @@ const CoCreateUser = {
|
|
|
47
47
|
method: 'object.create',
|
|
48
48
|
array: 'keys',
|
|
49
49
|
object: {
|
|
50
|
+
_id: user.object[0]._id,
|
|
50
51
|
type: "user",
|
|
51
52
|
key: user.object[0]._id,
|
|
52
53
|
roles: ['user'],
|
|
@@ -60,7 +61,7 @@ const CoCreateUser = {
|
|
|
60
61
|
if (response && response.object && response.object[0]) {
|
|
61
62
|
// Crud.socket.send({ method: 'signUp', user, userKey })
|
|
62
63
|
|
|
63
|
-
render
|
|
64
|
+
render({
|
|
64
65
|
selector: "[template*='signUp']",
|
|
65
66
|
data: {
|
|
66
67
|
type: 'signUp',
|
|
@@ -133,7 +134,7 @@ const CoCreateUser = {
|
|
|
133
134
|
else
|
|
134
135
|
message = "The email or password you entered is incorrect";
|
|
135
136
|
|
|
136
|
-
render
|
|
137
|
+
render({
|
|
137
138
|
selector: "[template*='signIn']",
|
|
138
139
|
data: {
|
|
139
140
|
type: 'signIn',
|
|
@@ -149,7 +150,7 @@ const CoCreateUser = {
|
|
|
149
150
|
localStorage.removeItem("user_id");
|
|
150
151
|
localStorage.removeItem("token");
|
|
151
152
|
|
|
152
|
-
render
|
|
153
|
+
render({
|
|
153
154
|
selector: "[template*='signOut']",
|
|
154
155
|
data: {
|
|
155
156
|
type: 'signOut',
|