diff options
author | gbmor <ben@gbmor.dev> | 2022-04-29 14:48:19 -0400 |
---|---|---|
committer | gbmor <ben@gbmor.dev> | 2022-04-29 14:48:19 -0400 |
commit | 811783008f0458c543da2c0333613a08c4f9cd4f (patch) | |
tree | 2cd13e5d0f1e0f89e2fea1a5f8590d1ba5076cb0 /html | |
parent | ca0371b54ebccc7e94b74185567d33299f368305 (diff) | |
download | site-811783008f0458c543da2c0333613a08c4f9cd4f.tar.gz |
allow ecdsa keys via signup form
Diffstat (limited to 'html')
-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 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>"; } |