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

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -