let sk- ssh keys be submitted

This commit is contained in:
gbmor 2021-08-11 19:40:12 -04:00
parent b26816c621
commit 3a219f7650
1 changed files with 1 additions and 1 deletions

View File

@ -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>";
}