def update_user currentPass, newPass, email = nil
      logged_in?
      params = {
        curpass: currentPass,
        newpass: newPass,
        uh: @modhash,
        verify: true,
        verpass: newPass,
        api_type: 'json'
        }
      params[:email] = email if email
      update = post('/api/update', body: params )
      set_cookies update.headers['set-cookie']
      return update
    end
def update_user currentPass, newPass, email = nil
      logged_in?
      params = {
        curpass: currentPass,
        newpass: newPass,
        uh: @modhash,
        verify: true,
        verpass: newPass,
        api_type: 'json'
        }
      params[:email] = email if email
      update = post('/api/update', body: params )
      set_cookies update.headers['set-cookie']
      return update
    end
Changes the current user's password/email.

 @note (see #clear_sessions)
 @param currentPass [String] The current password
 @param newPass [String] The new password
 @param email [String] The email address you would like to update to. Optional
 @return (see #clear_sessions)