Skip to content

Commit a4722a3

Browse files
committed
revisão
1 parent b04f156 commit a4722a3

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

tests/Integration/Api/Remote/SftpAuthenticationControllerTest.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,14 +116,12 @@ public function testUserIsThrottledIfInvalidCredentialsAreProvided()
116116
public function testUserIsNotThrottledIfNoPublicKeyMatches()
117117
{
118118
for ($i = 0; $i <= 10; ++$i) {
119-
// levemente modificado 2
120-
$publicKey = PrivateKey::c('Ed25519')->getPublicKey()->toString('OpenSSH');
121-
122119
$this->postJson('/api/remote/sftp/auth', [
123120
'type' => 'public_key',
124121
'username' => $this->getUsername(),
125-
'password' => $publicKey,
126-
])->assertForbidden();
122+
'password' => PrivateKey::createKey('Ed25519')->getPublicKey()->toString('OpenSSH'),
123+
])
124+
->assertForbidden();
127125
}
128126
}
129127

0 commit comments

Comments
 (0)