From 1fb85061e1197b0558ba2ac2fbc419242a350438 Mon Sep 17 00:00:00 2001 From: khuxkm fbexl Date: Thu, 9 Dec 2021 08:54:46 +0000 Subject: [PATCH] Allow ecdsa-sha2-* keys --- signup/signup-handler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/signup/signup-handler.php b/signup/signup-handler.php index ad17f8d..f01a281 100644 --- a/signup/signup-handler.php +++ b/signup/signup-handler.php @@ -147,7 +147,7 @@ if (isset($_REQUEST["username"]) && isset($_REQUEST["email"])) { $message .= "
  • please explain why you're interested so we can make sure you're a real human being
  • "; $sshkey = trim($_REQUEST["sshkey"]); - if ($sshkey == "" || mb_substr($sshkey, 0, 4) !== "ssh-") + if ($sshkey == "" || (mb_substr($sshkey, 0, 4) !== "ssh-" && mb_substr($sshkey, 0, 11) !== "ecdsa-sha2-")) $message .= '
  • ssh key required: please create one and submit the public key. ' . 'see our ssh wiki or ' . 'hop on irc and ask for help
  • ';