diff --git a/src/DiscourseAPI.php b/src/DiscourseAPI.php index 3de972b..85acf59 100644 --- a/src/DiscourseAPI.php +++ b/src/DiscourseAPI.php @@ -541,7 +541,7 @@ public function createUser( ) { // we need to call hp.json to get a challenge string - $challengeStringObject = $this->_getRequest( '/users/hp.json' ); + $challengeStringObject = $this->_getRequest( '/session/hp.json' ); if ( $challengeStringObject->http_code !== 200 ) { return false; } @@ -1305,4 +1305,4 @@ public function getTopTopics( string $period = 'yearly', string $userName = 'sys return $res; } -} \ No newline at end of file +}