Skip to content

Commit

Permalink
fix: SftpAuthenticationControllerTest after phpseclib update
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew Penner <[email protected]>
  • Loading branch information
matthewpi committed Oct 21, 2024
1 parent 41d06e0 commit 2fe5bda
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

namespace Pterodactyl\Tests\Integration\Api\Remote;

use phpseclib3\Crypt\EC;
use Pterodactyl\Models\Node;
use Pterodactyl\Models\User;
use Pterodactyl\Models\Server;
use Pterodactyl\Models\Permission;
use Pterodactyl\Models\UserSSHKey;
use phpseclib3\Crypt\EC\PrivateKey;
use Pterodactyl\Tests\Integration\IntegrationTestCase;

class SftpAuthenticationControllerTest extends IntegrationTestCase
Expand Down Expand Up @@ -119,7 +119,7 @@ public function testUserIsNotThrottledIfNoPublicKeyMatches()
$this->postJson('/api/remote/sftp/auth', [
'type' => 'public_key',
'username' => $this->getUsername(),
'password' => PrivateKey::createKey('Ed25519')->getPublicKey()->toString('OpenSSH'),
'password' => EC::createKey('Ed25519')->getPublicKey()->toString('OpenSSH'),
])
->assertForbidden();
}
Expand Down

0 comments on commit 2fe5bda

Please sign in to comment.