Skip to content

Commit 3b975ce

Browse files
author
FusionAuth Automation
committed
Sync from monorepo 565c3faf9fb1
1 parent 023dd78 commit 3b975ce

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

src/FusionAuth/FusionAuthClient.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6740,6 +6740,24 @@ public function updateTheme($themeId, $request)
67406740
->go();
67416741
}
67426742

6743+
/**
6744+
* Updates the two-factor method for the given user using a JSON body.
6745+
*
6746+
* @param string $userId The Id of the user to update.
6747+
* @param array $request The request information that contains the name and methodId along with any event information.
6748+
*
6749+
* @return ClientResponse The ClientResponse.
6750+
* @throws \Exception
6751+
*/
6752+
public function updateTwoFactor($userId, $request)
6753+
{
6754+
return $this->start()->uri("/api/user/two-factor")
6755+
->urlSegment($userId)
6756+
->bodyHandler(new JSONBodyHandler($request))
6757+
->put()
6758+
->go();
6759+
}
6760+
67436761
/**
67446762
* Updates the user with the given Id.
67456763
*

0 commit comments

Comments
 (0)