       emailSuccess: false
       emailError: null
 
-    payload =
-      users:
-        email: @refs.email.getDOMNode().value
-
-    apiClient.post '../users/password', payload
+    auth.requestPasswordReset email: @refs.email.getDOMNode().value
       .then =>
         @setState emailSuccess: true
       .catch (error) =>

          <p><strong>So, you’ve forgotten your password.</strong></p>
          <p>It happens to the best of us. Just enter your email address here and we’ll send you a link you can follow to reset it.</p>
          <p><input ref="email" type="email" className="standard-input" defaultValue={@props.query?.email} size="50" /></p>
          <p><button type="submit" className="standard-button">Submit</button></p>
        </form>}
    </div>


React = require 'react'
auth = require '../api/auth'
apiClient = require '../api/client'

RequestForm = React.createClass
