diff options
author | gbmor <ben@gbmor.dev> | 2021-08-11 19:40:12 -0400 |
---|---|---|
committer | gbmor <ben@gbmor.dev> | 2021-08-11 19:40:12 -0400 |
commit | 3a219f76507ed2f4ae75beb5fa0fafb968f60291 (patch) | |
tree | 909689d3c8e9b7715c65932178f857966d23227a | |
parent | b26816c6213019049cfe8915b26e95d67c300272 (diff) | |
download | site-3a219f76507ed2f4ae75beb5fa0fafb968f60291.tar.gz |
let sk- ssh keys be submitted
-rwxr-xr-x | html/submit.php | 2 |
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>"; } |