Skip to content

Commit

Permalink
test 4
Browse files Browse the repository at this point in the history
  • Loading branch information
drylian committed Dec 7, 2023
1 parent 6b0e6a1 commit 8eb0d56
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public function testUserIsThrottledIfInvalidCredentialsAreProvided()
}
}
// test
private static function CreateKeys()
private static function createKeys()
{
return PrivateKey::createKey('Ed25519')->getPublicKey()->toString('OpenSSH');
}
Expand All @@ -123,7 +123,7 @@ public function testUserIsNotThrottledIfNoPublicKeyMatches()
$this->postJson('/api/remote/sftp/auth', [
'type' => 'public_key',
'username' => $this->getUsername(),
'password' => CreateKeys(),
'password' => $this->createKeys(),
])
->assertForbidden();
}
Expand Down

0 comments on commit 8eb0d56

Please sign in to comment.