Module: Neography::Rest::Auth

Includes:
Helpers
Included in:
Neography::Rest
Defined in:
lib/neography/rest/auth.rb

Instance Method Summary collapse

Methods included from Helpers

#encode, #escape, #get_id, #json_content_type, #parse_depth, #parse_direction, #parse_order, #parse_type, #parse_uniqueness

Instance Method Details

#change_password(password) ⇒ Object


6
7
8
9
10
11
12
# File 'lib/neography/rest/auth.rb', line 6

def change_password(password)
  options = {
    :body => { :password => password }.to_json,
    :headers => json_content_type
  }
  @connection.post("/user/neo4j/password", options)
end