we $name and $email for ban info

This commit is contained in:
creme 2020-02-02 11:51:16 +01:00
parent 4d9c92786f
commit 7c5460b4ff
Signed by: creme
GPG Key ID: C147C3B7FBDF08D0
1 changed files with 5 additions and 3 deletions

View File

@ -104,9 +104,11 @@ if (isset($_REQUEST["username"]) && isset($_REQUEST["email"])) {
$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";
else {
if (forbidden_sshkey($sshkey)) {
$message .= "<li>your sshkey is banned!</li>\n";
add_ban_info($name, $email);
if ($name != "" && $email != "") {
if (forbidden_sshkey($sshkey)) {
$message .= "<li>your sshkey is banned!</li>\n";
add_ban_info($name, $email);
}
}
}