Skip to content

Commit

Permalink
Update DirectAdmin.php
Browse files Browse the repository at this point in the history
Keep verify option when cloning connection in loginAs
  • Loading branch information
mvdgeijn authored Dec 7, 2023
1 parent a016fea commit b80117d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DirectAdmin/DirectAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public function invokeApi($method, $command, $options = [])
public function loginAs($username)
{
// DirectAdmin format is to just pipe the accounts together under the master password
return new self($this->baseUrl, $this->authenticatedUser . "|{$username}", $this->password);
return ( new self($this->baseUrl, $this->authenticatedUser . "|{$username}", $this->password) )->setVerify( $this->verify );
}

/**
Expand Down

0 comments on commit b80117d

Please sign in to comment.