swift - In Quickblox is it possible to update the user password without reset? -
i attempting change user's password following code:
let updateparameters = qbupdateuserparameters() updateparameters.password = newpasswordfield.text qbrequest.updatecurrentuser(updateparameters, successblock: { (response: qbresponse, user: qbuuser?) -> void in print("success") }, errorblock: { (response: qbresponse) -> void in print("error") })
upon debugging, receive 422 client error. assuming because qbupdateuserparameters has restriction on updating passwords.
i ran couple of answers change password old qbuusers class recent updates seemed have removed use of class. can point me in right direction?
you need provide old password:
updateparameters.oldpassword = ...
Comments
Post a Comment