about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorgbmor <ben@gbmor.dev>2021-08-11 19:40:12 -0400
committergbmor <ben@gbmor.dev>2021-08-11 19:40:12 -0400
commit3a219f76507ed2f4ae75beb5fa0fafb968f60291 (patch)
tree909689d3c8e9b7715c65932178f857966d23227a
parentb26816c6213019049cfe8915b26e95d67c300272 (diff)
downloadsite-3a219f76507ed2f4ae75beb5fa0fafb968f60291.tar.gz
let sk- ssh keys be submitted
-rwxr-xr-xhtml/submit.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/html/submit.php b/html/submit.php
index e8fcd15..d778415 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-") {
+    if ($_REQUEST["sshkey"] == "" || (substr($_REQUEST["sshkey"], 0, 4) !== "ssh-" && substr($_REQUEST["sshkey"], 0, 3) !== "sk-") {
         $message .= "<li>ssh key required: please create one and submit the public key</li>";
     }