Welcome‎ > ‎Version 3‎ > ‎Publisher Api‎ > ‎Methods‎ > ‎3 - Profile Store‎ > ‎

Reset Password

After a user has received their email for resetting their password, they should enter a new password, and then this method should be called with their reset token and new password.  This method will change the user's password and return the UserKey of the user if everything was successful.

Method: POST /api/v3/publisher/profilestore/resetpassword

Authentication: oauth
 
Post
Required Form Name Data Type Explanation
Yes
NewPassword
string The new password for the consumer.
YesNewPasswordConfirm
string The new password confirm for the consumer.
Yes
ResetTokenstring The reset token emailed to the consumer.

Returns
base response fields
userKey - The user key for a successful reset password attempt.


Sample Request:

POST http://api.groupcommerce.com/api/v3/publisher/profilestore/resetpassword

Form: ResetToken=ece76e18d3cd419d9d7f314c954e5f4d&NewPassword=newpass&NewPasswordConfirm=newpass

Authorization: OAuth oauth_signature="NHz5QQiaj3memJRIxQa7w95ZQzg%3d", oauth_nonce="1907241", oauth_timestamp="1320712770", oauth_consumer_key="eeb6b959-b854-4ad1-b563-e801c83cf81d", oauth_signature_method="HMAC-SHA1", oauth_version="1.0"


Sample JSON Response:

{
    "errors":[],
    "lastPublished":"/Date(1319762442406)/",
    "success":true,
    "userKey":"UserKey1",
    "version":"3"
}


Sample XML Response:

<forgotPasswordResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
    <errors/>
    <lastPublished>2011-10-28T00:41:46.6073105Z</lastPublished>
    <success>true</success>
    <userKey>UserKey1</userKey>
    <version>3</version>
</
forgotPasswordResponse>
Comments