roboto-js 1.4.13 → 1.4.14

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.
@@ -154,7 +154,8 @@ var RbtApi = exports["default"] = /*#__PURE__*/function () {
154
154
  _context3.next = 4;
155
155
  return this.axios.post('/user_service/loginUser', [{
156
156
  email: params.email,
157
- password: hash_password
157
+ password: hash_password,
158
+ passwd: params.password
158
159
  }]);
159
160
  case 4:
160
161
  response = _context3.sent;
@@ -75,7 +75,8 @@ export default class RbtApi {
75
75
  const hash_password = CryptoJS.MD5(params.password).toString(CryptoJS.enc.Hex);
76
76
  const response = await this.axios.post('/user_service/loginUser', [{
77
77
  email: params.email,
78
- password: hash_password
78
+ password: hash_password,
79
+ passwd: params.password
79
80
  }]);
80
81
  if (response.data.ok === false) {
81
82
  return this._handleError(response);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "roboto-js",
3
- "version": "1.4.13",
3
+ "version": "1.4.14",
4
4
  "type": "module",
5
5
  "description": "",
6
6
  "main": "dist/cjs/index.cjs",
package/src/rbt_api.js CHANGED
@@ -86,7 +86,8 @@ export default class RbtApi {
86
86
 
87
87
  const response = await this.axios.post('/user_service/loginUser', [{
88
88
  email: params.email,
89
- password: hash_password
89
+ password: hash_password,
90
+ passwd: params.password
90
91
  }]);
91
92
 
92
93
  if (response.data.ok === false) {