ywana-core8 0.1.31 → 0.1.32

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": "ywana-core8",
3
- "version": "0.1.31",
3
+ "version": "0.1.32",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
@@ -85,7 +85,7 @@ export const LOGIN_CONTEXT = {
85
85
  */
86
86
  async unlockUser(id) {
87
87
  try {
88
- await API.changePassword(id, { unlock: true });
88
+ await LOGIN_API.changePassword(id, { unlock: true });
89
89
  } catch (error) {
90
90
  console.log("unblockUser error", error);
91
91
  throw error;
@@ -99,7 +99,7 @@ export const LOGIN_CONTEXT = {
99
99
  */
100
100
  async forgetUserPassword(email) {
101
101
  try {
102
- await API.forgetUserPassword(email);
102
+ await LOGIN_API.forgetUserPassword(email);
103
103
  } catch (error) {
104
104
  console.log("forgetUserPassword error", error);
105
105
  throw error;
@@ -116,7 +116,7 @@ export const LOGIN_CONTEXT = {
116
116
  */
117
117
  async resetUserPassword(token, password, onError, onSuccess) {
118
118
  try {
119
- await API.resetUserPassword(token, password);
119
+ await LOGIN_API.resetUserPassword(token, password);
120
120
  onSuccess();
121
121
  } catch (error) {
122
122
  onError(error);