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

    user: {}

  getInitialState: ->
    inProgress: false
    success: false
    error: null

  render: ->
    <form onSubmit={@handleSubmit}>
      <p>
        <strong>Change your password</strong>
      </p>

      </p>
    </form>

  tooShort: ->
    @state.new.length < MIN_PASSWORD_LENGTH

  doesntMatch: ->
    @state.new isnt @state.confirmation

  handleSubmit: (e) ->
    e.preventDefault()

    current = @state.old
    replacement = @state.new

    @setState
      inProgress: true
