roboto-js 1.1.6 → 1.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "roboto-js",
3
- "version": "1.1.6",
3
+ "version": "1.1.7",
4
4
  "type": "module",
5
5
  "description": "",
6
6
  "main": "dist/cjs/index.cjs",
package/src/index.js CHANGED
@@ -82,6 +82,9 @@ export default class Roboto{
82
82
  async loadCurrentUser(){
83
83
  return this.api.loadCurrentUser();
84
84
  }
85
+ async confirmUserEmail(params){
86
+ return this.api.confirmUserEmail(params);
87
+ }
85
88
 
86
89
  //
87
90
  // create and upload files
package/src/rbt_api.js CHANGED
@@ -123,6 +123,25 @@ export default class RbtApi {
123
123
 
124
124
  }
125
125
 
126
+
127
+ async confirmUserEmail(confirmCode){
128
+
129
+ debugger;
130
+ let params = { emailConfirmCode: confirmCode };
131
+
132
+ try {
133
+
134
+ const response = await this.axios.post('/user_service/confirmUserEmail', [params]);
135
+ debugger;
136
+ return response;
137
+
138
+ } catch (e) {
139
+ return this._handleError(e);
140
+ }
141
+
142
+ }
143
+
144
+
126
145
  async loadUser(userId){
127
146
 
128
147
  let params = { id: userId };
@@ -167,11 +186,9 @@ export default class RbtApi {
167
186
  async registerUser(dataHash={}) {
168
187
  try {
169
188
  const response = await this.axios.post('/user_service/registerUser', [dataHash]);
170
- const record = response.data;
171
189
 
172
- if(dataHash){
173
- record.data = dataHash;
174
- }
190
+ debugger;
191
+ const record = response.data;
175
192
  return new RbtUser(record, this.axios);
176
193
  } catch (e) {
177
194
  debugger;