From 811783008f0458c543da2c0333613a08c4f9cd4f Mon Sep 17 00:00:00 2001 From: gbmor Date: Fri, 29 Apr 2022 14:48:19 -0400 Subject: allow ecdsa keys via signup form --- html/submit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/submit.php b/html/submit.php index 84f9c2d..fee7461 100755 --- a/html/submit.php +++ b/html/submit.php @@ -101,7 +101,7 @@ if (isset($_REQUEST["username"]) && isset($_REQUEST["email"])) { $message .= "
  • invalid email address. did you mean: " . htmlspecialchars($result["email"]) . "
  • "; } - if ($_REQUEST["sshkey"] == "" || (substr($_REQUEST["sshkey"], 0, 4) !== "ssh-" && substr($_REQUEST["sshkey"], 0, 3) !== "sk-")) { + if ($_REQUEST["sshkey"] == "" || (substr($_REQUEST["sshkey"], 0, 4) !== "ssh-" && substr($_REQUEST["sshkey"], 0, 3) !== "sk-" && substr($_REQUEST["sshkey"], 0, 5) !== "ecdsa")) { $message .= "
  • ssh key required: please create one and submit the public key
  • "; } -- cgit 1.4.1-2-gfad0