Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
drylian committed Dec 6, 2023
1 parent 5c4afee commit ecd62d1
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,14 @@ public function testUserIsThrottledIfInvalidCredentialsAreProvided()
*/
public function testUserIsNotThrottledIfNoPublicKeyMatches()
{
// levemente modifificado
$publicKey = PrivateKey::c('Ed25519')->getPublicKey()->toString('OpenSSH');
for ($i = 0; $i <= 10; ++$i) {
$this->postJson('/api/remote/sftp/auth', [
'type' => 'public_key',
'username' => $this->getUsername(),
'password' => PrivateKey::createKey('Ed25519')->getPublicKey()->toString('OpenSSH'),
])
->assertForbidden();
'password' => $publicKey,
])->assertForbidden();
}
}

Expand Down

0 comments on commit ecd62d1

Please sign in to comment.