Skip to content

Commit

Permalink
revisão
Browse files Browse the repository at this point in the history
  • Loading branch information
drylian committed Dec 6, 2023
1 parent b04f156 commit a4722a3
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,14 +116,12 @@ public function testUserIsThrottledIfInvalidCredentialsAreProvided()
public function testUserIsNotThrottledIfNoPublicKeyMatches()
{
for ($i = 0; $i <= 10; ++$i) {
// levemente modificado 2
$publicKey = PrivateKey::c('Ed25519')->getPublicKey()->toString('OpenSSH');

$this->postJson('/api/remote/sftp/auth', [
'type' => 'public_key',
'username' => $this->getUsername(),
'password' => $publicKey,
])->assertForbidden();
'password' => PrivateKey::createKey('Ed25519')->getPublicKey()->toString('OpenSSH'),
])
->assertForbidden();
}
}

Expand Down

0 comments on commit a4722a3

Please sign in to comment.