Class: Alula::UserPasswordResetProc

Inherits:
RpcResource show all
Defined in:
lib/alula/procedures/user_password_reset_proc.rb

Defined Under Namespace

Classes: Response

Class Method Summary collapse

Methods inherited from RpcResource

ok?, request, wrap_payload

Class Method Details

.call(token:, password:) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/alula/procedures/user_password_reset_proc.rb', line 7

def self.call(token:, password:)
  payload = {
    token: token,
    password: password,
  }
  request( 
    http_method: :post,
    path: '/public/v1/users/password/reset',
    payload: payload,
    handler: Response
  )
end