Class: Docusigner::LoginInformation

Inherits:
Base
  • Object
show all
Defined in:
lib/docusigner/login_information.rb

Class Method Summary collapse

Methods inherited from Base

act_as_user, authorization=, connection, headers, #to_json, token=

Methods included from Multipart::Resource

#add_document, #encode

Class Method Details

.change_password(email, current_password, new_password, options = {}) ⇒ Object



6
7
8
9
10
11
12
13
# File 'lib/docusigner/login_information.rb', line 6

def change_password(email, current_password, new_password, options = {})
  body = {
    "currentPassword" => current_password,
    "email" => email,
    "newPassword" => new_password
  }.merge(options).to_json
  resp = put(:password, {}, body)
end