signup: show help for openssh public key directly and not only as a notice.

This commit is contained in:
creme 2020-03-29 23:46:12 +02:00
parent 47a906931b
commit e8e198141a
Signed by: creme
GPG Key ID: C147C3B7FBDF08D0
2 changed files with 3 additions and 3 deletions

View File

@ -104,8 +104,7 @@ if (isset($_REQUEST["username"]) && isset($_REQUEST["email"])) {
$sshkey = trim($_REQUEST["sshkey"]);
if ($sshkey == "" || substr($sshkey, 0, 4) !== "ssh-")
$message .= "<li>ssh key required: please submit the public key.<br />"
. "if you don't have a key, don't worry! check out our <a href=\"https://help.envs.net/help/#ssh\" target=\"blank\">help page</a> to ssh keys.</li>\n";
$message .= "<li>ssh key required: please submit the public key.</li>\n";
else {
if ($name != "" && $email != "") {
if (forbidden_sshkey($sshkey)) {

View File

@ -39,7 +39,8 @@ include 'header.php';
<label>what interests you about envs.net?<br />
<textarea class="form-control" name="interest" rows="8" style="width: 560px;"><?=$_REQUEST["interest"] ?? ""?></textarea></label>
<p></p>
<label>ssh public key:<br />
<label>openssh public key:<br />
<small>if you dont have a key, dont worry! check out our <a href="https://help.envs.net/help/#ssh" target="blank">help page</a> to ssh keys.</small><br />
<textarea class="form-control" name="sshkey" rows="8" style="width: 560px;"><?=$_REQUEST["sshkey"] ?? ""?></textarea></label>
<br />