ConnectyCube / connectycube-js-sdk-releases

Releases materials for ConnectyCube JS SDK platform https://connectycube.com
9 stars 2 forks source link

password change not changing password - JS (React Native) #19

Closed krisbaum74 closed 4 years ago

krisbaum74 commented 4 years ago

const updatedUserProfile = { login: userCredentials.login, full_name: fullName, password: password, old_password: oldPassword };

  }

// JS SDK v2 ConnectyCube.users .update(updatedUserProfile) .then(user => { console.log('updated user!!'); console.log(user) }) .catch(error => {});

console gets updated user, and the full name can be updated but the password doesnt change even though oldpassword is same as the one used to login.

ccvlad commented 4 years ago

Hi, @krisbaum74

  1. Did you try to login with new password after updating?
  2. What the log (response from server)?

*note: you won't get new password in response cause security.

krisbaum74 commented 4 years ago

Yes and it's still the old password. It doesn't change the password.

Server log from ConnectyCube? No error is thrown

Kris

On Fri, Apr 24, 2020, 4:21 PM ccvlad notifications@github.com wrote:

Hi, @krisbaum74 https://github.com/krisbaum74

  1. Did you try to login with new password after updating?
  2. What the log (response from server)?

*note: you won't get new password in response cause security.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ConnectyCube/connectycube-js-sdk-releases/issues/19#issuecomment-618875096, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANXOUQAIP2KOTC7LFGL3GALROFDXPANCNFSM4MPYUOYQ .

ccvlad commented 4 years ago

I will test the code and let you know

ccvlad commented 4 years ago

I've tested and code works as expected (I was able to change password and login with new).

  1. Are you trying to change password for current user?
  2. Please provide your logs (from ConnectyCube.createSession() to ConnectyCube.users.update())
ccvlad commented 4 years ago

Closed due inactivity, please re-open if the issue is still persists.