Skip to content

Commit 1fb3332

Browse files
committed
use SSHKeyExists()
1 parent 718c315 commit 1fb3332

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/lib/UnityUser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ public function addSSHKey(
240240
?UnityUser $operator = null,
241241
bool $send_mail = true,
242242
): bool {
243-
if (in_array($key, $this->getSSHKeys())) {
243+
if ($this->SSHKeyExists($key)) {
244244
return false;
245245
}
246246
$this->setSSHKeys(array_merge($this->getSSHKeys(), [$key]), $operator, $send_mail);

0 commit comments

Comments
 (0)