def update
      unless @reset.valid?
        render 'edit' and return
      end

      if @user.update_attributes(password: @reset.password, password_confirmation: @reset.password)
        log_in @user
        flash[:success] = 'Password has been reset.'
        redirect_to @user
      else
        @user.errors[:base] << 'Failed to reset password.'
        render 'edit'
      end
    end
def update
      unless @reset.valid?
        render 'edit' and return
      end

      if @user.update_attributes(password: @reset.password, password_confirmation: @reset.password)
        log_in @user
        flash[:success] = 'Password has been reset.'
        redirect_to @user
      else
        @user.errors[:base] << 'Failed to reset password.'
        render 'edit'
      end
    end
POST /incline/password_resets/reset-token