mirror of https://git.envs.net/envs/site.git
signup: show help for openssh public key directly and not only as a notice.
This commit is contained in:
parent
47a906931b
commit
e8e198141a
|
@ -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)) {
|
||||
|
|
|
@ -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 />
|
||||
|
||||
|
|
Loading…
Reference in New Issue