we $name and $email for ban info
This commit is contained in:
parent
6b465e8b03
commit
58760e50b7
|
@ -150,9 +150,11 @@ if (isset($_REQUEST["username"]) && isset($_REQUEST["email"])) {
|
||||||
. 'see our <a href="https://tilde.team/wiki/?page=ssh">ssh wiki</a> or '
|
. 'see our <a href="https://tilde.team/wiki/?page=ssh">ssh wiki</a> or '
|
||||||
. 'hop on <a href="https://web.tilde.chat/?join=team">irc</a> and ask for help</li>';
|
. 'hop on <a href="https://web.tilde.chat/?join=team">irc</a> and ask for help</li>';
|
||||||
else {
|
else {
|
||||||
if (forbidden_sshkey($sshkey)) {
|
if ($name != "" && $email != "") {
|
||||||
$message .= "<li>your sshkey is banned!</li>\n";
|
if (forbidden_sshkey($sshkey)) {
|
||||||
add_ban_info($name, $email);
|
$message .= "<li>your sshkey is banned!</li>\n";
|
||||||
|
add_ban_info($name, $email);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue