public function dbconnections_change_password(
        $email,
        $connection,
        $password = null
    )
    {
        $data = [
            'client_id' => $this->client_id,
            'email' => $email,
            'connection' => $connection,
        ];

        if ($password !== null) {
            $data['password'] = $password;
        }

        return $this->apiClient->post()
        ->dbconnections()
        ->change_password()
        ->withHeader(new ContentType('application/json'))
        ->withBody(json_encode($data))
        ->call();
    }
public function dbconnections_change_password(
        $email,
        $connection,
        $password = null
    )
    {
        $data = [
            'client_id' => $this->client_id,
            'email' => $email,
            'connection' => $connection,
        ];

        if ($password !== null) {
            $data['password'] = $password;
        }

        return $this->apiClient->post()
        ->dbconnections()
        ->change_password()
        ->withHeader(new ContentType('application/json'))
        ->withBody(json_encode($data))
        ->call();
    }
public function dbconnections_change_password ( $ email , $ connection , $ password = null ) { $ data = [ 'client_id' => $ this -> client_id , 'email' => $ email , 'connection' => $ connection , ] ; if ( $ password !== null ) { $ data [ 'password' ] = $ password ; } return $ this -> apiClient -> post ( ) -> dbconnections ( ) -> change_password ( ) -> withHeader ( new ContentType ( 'application/json' ) ) -> withBody ( json_encode ( $ data ) ) -> call ( ) ; }
Send a change password email.
This endpoint only works for database connections.

@param string      $email      Email for the user changing their password.
@param string      $connection The name of the database connection this user is in.
@param null|string $password   New password to use.
If this parameter is provided, when the user clicks on the confirm password change link,
this value will be set for the user.
If this parameter is NOT provided, the user will be asked for a new password.

@return mixed

@link https://auth0.com/docs/api/authentication#change-password
Send a change password email . This endpoint only works for database connections .