Method: VMC::Client#change_password
- Defined in:
- lib/vmc/client.rb
#change_password(new_password) ⇒ Object
sets the password for the current logged user
322 323 324 325 326 327 328 329 |
# File 'lib/vmc/client.rb', line 322 def change_password(new_password) check_login_status user_info = json_get(path(VMC::USERS_PATH, @user)) if user_info user_info[:password] = new_password json_put(path(VMC::USERS_PATH, @user), user_info) end end |