rehive 1.36.0 → 1.37.0

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.
Files changed (2) hide show
  1. package/app.js +8 -12
  2. package/package.json +2 -2
package/app.js CHANGED
@@ -18,15 +18,14 @@ function convertToText(data) {
18
18
  return dataString;
19
19
  }
20
20
 
21
- function register(first_name, last_name, email, company, password1, password2,terms_and_conditions) {
21
+ function register(first_name, last_name, email, company, password, terms_and_conditions) {
22
22
  rehive.auth.register(
23
23
  {
24
24
  first_name: first_name,
25
25
  last_name: last_name,
26
26
  email: email,
27
27
  company: company,
28
- password1: password1,
29
- password2: password2,
28
+ password: password,
30
29
  terms_and_conditions: terms_and_conditions
31
30
  }).then(function (user) {
32
31
  console.log(user);
@@ -36,15 +35,14 @@ function register(first_name, last_name, email, company, password1, password2,te
36
35
  });
37
36
  }
38
37
 
39
- function registerCompany(first_name, last_name, email, company, password1, password2,terms_and_conditions) {
38
+ function registerCompany(first_name, last_name, email, company, password, terms_and_conditions) {
40
39
  rehive.auth.registerCompany(
41
40
  {
42
41
  first_name: first_name,
43
42
  last_name: last_name,
44
43
  email: email,
45
44
  company: company,
46
- password1: password1,
47
- password2: password2,
45
+ password: password,
48
46
  terms_and_conditions: terms_and_conditions
49
47
  }).then(function (user) {
50
48
  console.log(user);
@@ -91,12 +89,11 @@ function logoutAll() {
91
89
  });
92
90
  }
93
91
 
94
- function changePassword(old_password, new_password1, new_password2) {
92
+ function changePassword(old_password, new_password) {
95
93
  rehive.auth.password.change(
96
94
  {
97
95
  old_password: old_password,
98
- new_password1: new_password1,
99
- new_password2: new_password2
96
+ new_password: new_password
100
97
  }).then(function (res) {
101
98
  console.log(res);
102
99
  document.getElementById('result').innerHTML = convertToText(res.message);
@@ -118,11 +115,10 @@ function resetPassword(user, company) {
118
115
  });
119
116
  }
120
117
 
121
- function resetConfirmPassword(new_password1, new_password2, uid, token) {
118
+ function resetConfirmPassword(new_password, uid, token) {
122
119
  rehive.auth.password.resetConfirm(
123
120
  {
124
- new_password1: new_password1,
125
- new_password2: new_password2,
121
+ new_password: new_password,
126
122
  uid: uid,
127
123
  token: token
128
124
  }).then(function (res) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "rehive",
3
- "version": "1.36.0",
4
- "description": "Javascript sdk for rehive APIs",
3
+ "version": "1.37.0",
4
+ "description": "Javascript SDK for rehive APIs",
5
5
  "main": "rehive.js",
6
6
  "dependencies": {
7
7
  "node-fetch": "^2.6.1",