Method: Mints::Contact#reset_password

Defined in:
lib/contact.rb

#reset_password(data) ⇒ Object

Reset Password.

Reset password using a token. The token is obtained by recover_password method.

Parameters:

data

(Hash) – It’s a set of data which contains all the information to reset a contact password.

Example

data = { 
  "email": "[email protected]", 
  "password": "password", 
  "password_confirmation": "password", 
  "token": "644aa3aa0831d782cc42e42b11aedea9a2234389af4f429a8d96651295ecfa09" 
}
@mints_contact.reset_password(data)


150
151
152
# File 'lib/contact.rb', line 150

def reset_password(data)
  return @client.raw("post", "/contacts/reset-password", nil, data_transform(data))
end