Added ssh key validation
This commit is contained in:
parent
f3fd703f02
commit
476b911305
|
@ -105,6 +105,11 @@ if (isset($_REQUEST["username"]) && isset($_REQUEST["email"])) {
|
|||
$message .= "<li>ssh key required: please create one and submit the public key</li>";
|
||||
}
|
||||
|
||||
if (mb_substr($_REQUEST["sshkey"], 0, 4) !== "ssh-") {
|
||||
$message .= "<li>PUBLIC ssh key required: please create one and submit the public key</li>";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if ($message == "") { // no validation errors
|
||||
|
||||
|
|
Loading…
Reference in New Issue