about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorgbmor <ben@gbmor.dev>2022-04-29 14:48:19 -0400
committergbmor <ben@gbmor.dev>2022-04-29 14:48:19 -0400
commit811783008f0458c543da2c0333613a08c4f9cd4f (patch)
tree2cd13e5d0f1e0f89e2fea1a5f8590d1ba5076cb0
parentca0371b54ebccc7e94b74185567d33299f368305 (diff)
downloadsite-811783008f0458c543da2c0333613a08c4f9cd4f.tar.gz
allow ecdsa keys via signup form
-rwxr-xr-xhtml/submit.php2
1 files changed, 1 insertions, 1 deletions
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 .= "<li>invalid email address. did you mean:  " . htmlspecialchars($result["email"]) . "</li>";
     }
 
-    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 .= "<li>ssh key required: please create one and submit the public key</li>";
     }