Skip to content

Commit ae6a464

Browse files
committed
update ssh_validate for new testValidSSHKey
1 parent a9af153 commit ae6a464

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

webroot/js/ajax/ssh_validate.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
require_once __DIR__ . "/../../../resources/lib/utils.php";
55
require_once __DIR__ . "/../../../resources/lib/UnityHTTPD.php";
66

7-
use UnityWebPortal\lib\UnityHTTPD;
8-
97
header('Content-Type: application/json; charset=utf-8');
10-
echo jsonEncode(["is_valid" => testValidSSHKey(UnityHTTPD::getPostData("key"))]);
8+
[$is_valid, $expanation] = testValidSSHKey($_POST["key"]);
9+
echo jsonEncode(["is_valid" => $is_valid, "explanation" => $explanation]);

0 commit comments

Comments
 (0)