forked from team/site
1
0
Fork 0

we $name and $email for ban info

This commit is contained in:
creme 2020-02-02 11:51:51 +01:00
parent 6b465e8b03
commit 58760e50b7
Signed by untrusted user: creme
GPG Key ID: C147C3B7FBDF08D0
1 changed files with 5 additions and 3 deletions

View File

@ -150,11 +150,13 @@ 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 ($name != "" && $email != "") {
if (forbidden_sshkey($sshkey)) { if (forbidden_sshkey($sshkey)) {
$message .= "<li>your sshkey is banned!</li>\n"; $message .= "<li>your sshkey is banned!</li>\n";
add_ban_info($name, $email); add_ban_info($name, $email);
} }
} }
}
// no validation errors // no validation errors