@cocreate/users 1.28.0 → 1.28.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.
- package/CHANGELOG.md +14 -0
- package/package.json +1 -1
- package/src/client.js +5 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [1.28.2](https://github.com/CoCreate-app/CoCreate-users/compare/v1.28.1...v1.28.2) (2023-10-24)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* signin conditionals ([bb58112](https://github.com/CoCreate-app/CoCreate-users/commit/bb581121c7e7a747aed3f085d4498b15382cd9d6))
|
|
7
|
+
|
|
8
|
+
## [1.28.1](https://github.com/CoCreate-app/CoCreate-users/compare/v1.28.0...v1.28.1) (2023-10-22)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* render data ([188ee15](https://github.com/CoCreate-app/CoCreate-users/commit/188ee15005ca619d89dfbb078b5a857c03c31393))
|
|
14
|
+
|
|
1
15
|
# [1.28.0](https://github.com/CoCreate-app/CoCreate-users/compare/v1.27.7...v1.28.0) (2023-10-22)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
package/src/client.js
CHANGED
|
@@ -104,10 +104,8 @@ const CoCreateUser = {
|
|
|
104
104
|
response['success'] = true
|
|
105
105
|
response['status'] = "success"
|
|
106
106
|
response['user_id'] = response.object[0].key
|
|
107
|
-
this.signInResponse(response)
|
|
108
|
-
} else {
|
|
109
|
-
this.signInResponse(response)
|
|
110
107
|
}
|
|
108
|
+
this.signInResponse(response)
|
|
111
109
|
})
|
|
112
110
|
} else {
|
|
113
111
|
request.method = 'signIn'
|
|
@@ -127,7 +125,7 @@ const CoCreateUser = {
|
|
|
127
125
|
localStorage.setItem("host", Crud.socket.host);
|
|
128
126
|
localStorage.setItem('user_id', user_id);
|
|
129
127
|
localStorage.setItem("token", token);
|
|
130
|
-
message = "
|
|
128
|
+
message = "Successful signIn";
|
|
131
129
|
document.dispatchEvent(new CustomEvent('signIn', {
|
|
132
130
|
detail: {}
|
|
133
131
|
}));
|
|
@@ -139,11 +137,9 @@ const CoCreateUser = {
|
|
|
139
137
|
selector: "[template*='signIn']",
|
|
140
138
|
data: {
|
|
141
139
|
type: 'signIn',
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
success
|
|
146
|
-
}
|
|
140
|
+
status,
|
|
141
|
+
message,
|
|
142
|
+
success
|
|
147
143
|
}
|
|
148
144
|
});
|
|
149
145
|
},
|