     user: {}
 
   getInitialState: ->
+    old: ''
+    new: ''
+    confirmation: ''
     inProgress: false
     success: false
     error: null
 
   render: ->
-    <form onSubmit={@handleSubmit}>
+    <form ref="form" onSubmit={@handleSubmit}>
       <p>
         <strong>Change your password</strong>
       </p>

putFile = require '../lib/put-file'

MAX_AVATAR_SIZE = 65536

ChangePasswordForm = React.createClass
  displayName: 'ChangePasswordForm'

    auth.changePassword {current, replacement}
      .then =>
        @setState success: true
        @refs.form.getDOMNode().reset()
      .catch (error) =>
        @setState {error}
      .then =>
