POST api/Account/{token}/resetpw
Reset the Password for an existing User Account. User account will be identified by the PasswordResetToken and verified by the Username. If account identification or verification is unsuccessful for any reason, the user account password will not be changed. PasswordResetToken values have an expiration date associated with them, and must not be expired in order to be considered valid.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
token |
The PasswordReset Token issued for the account to be updated. |
string |
Required |
Body Parameters
Object containing Username, PasswordResetToken, NewPassword and ConfirmPassword
UserPasswordResetName | Description | Type | Additional information |
---|---|---|---|
PasswordResetToken | string |
None. |
|
Username | string |
None. |
|
NewPassword | string |
None. |
|
ConfirmPassword | string |
None. |
Request Formats
application/json, text/json
{ "PasswordResetToken": "95ba8a20-c34d-4a4e-adf7-e9bd696222d4", "Username": "john.doe@email.com", "NewPassword": "NewPassword", "ConfirmPassword": "NewPassword" }
application/xml, text/xml
<UserPasswordReset xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PBR.FanClub.WebAPI.Models"> <ConfirmPassword>NewPassword</ConfirmPassword> <NewPassword>NewPassword</NewPassword> <PasswordResetToken>95ba8a20-c34d-4a4e-adf7-e9bd696222d4</PasswordResetToken> <Username>john.doe@email.com</Username> </UserPasswordReset>
Response Information
Resource Description
PasswordResetPostResponseName | Description | Type | Additional information |
---|---|---|---|
EmailAddress | string |
None. |
|
Success |
Boolean value indicating if request was fulfilled |
boolean |
None. |
ErrorMessage |
List of any errors or problems that prevented request from being fulfilled. |
Collection of string |
None. |
Response Formats
application/json, text/json
{ "EmailAddress": "john.doe@email.com", "Success": true, "ErrorMessage": [] }
application/xml, text/xml
<PasswordResetPostResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PBR.FanClub.WebAPI.Models"> <ErrorMessage xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" /> <Success>true</Success> <EmailAddress>john.doe@email.com</EmailAddress> </PasswordResetPostResponse>