def confirm_forgot_password(self, confirmation_code, password):
        """
        Allows a user to enter a code provided when they reset their password
        to update their password.
        :param confirmation_code: The confirmation code sent by a user's request
        to retrieve a forgotten password
        :param password: New password
        """
        params = {'ClientId': self.client_id,
                  'Username': self.username,
                  'ConfirmationCode': confirmation_code,
                  'Password': password
                  }
        self._add_secret_hash(params, 'SecretHash')
        response = self.client.confirm_forgot_password(**params)
        self._set_attributes(response, {'password': password})
def confirm_forgot_password ( self , confirmation_code , password ) : params = { 'ClientId' : self . client_id , 'Username' : self . username , 'ConfirmationCode' : confirmation_code , 'Password' : password } self . _add_secret_hash ( params , 'SecretHash' ) response = self . client . confirm_forgot_password ( ** params ) self . _set_attributes ( response , { 'password' : password } )
Allows a user to enter a code provided when they reset their password
        to update their password.
        :param confirmation_code: The confirmation code sent by a user's request
        to retrieve a forgotten password
        :param password: New password