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)
101 102 103 |
# File 'lib/contact.rb', line 101 def reset_password(data) @client.raw('post', '/contacts/reset-password', nil, data_transform(data)) end |