Skip to content

APIMemberPasswordReminder

Lodle edited this page May 13, 2014 · 4 revisions

Table of Contents

Password Reminder

This is used to get the password for an account emailed to the user if they forget it

Input

URL

 * http://api.desura.com/1/memberpasswordreminder

Post

 * emailreset: Required

Process

 1. When wanting a password reminder email this api is called
   * Invalid data will result in a 107 (validation error) being thrown.
   * Any other errors will result in a 100 (generic error) message being thrown.
 1. If a valid email is provided, 0 (ok) will be returned and an email will be sent to the member with instructions about how to reset their password

Output

0: Ok

<memberpasswordreminder xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="desura" version="1">
	<status code="0"/>
</memberpasswordreminder>

107: Validation Error

<?xml version="1.0" encoding="utf-8"?> 
<memberpasswordreminder xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="desura" version="1">
	<status code="107">The email field is required.</status>
	<validation>
		<fields>
			<emailreset>The email field is required.</emailreset>
		</fields>
	</validation>
</memberpasswordreminder>

100: Generic Error

As above, only with different status code and text.
Clone this wiki locally