From 58760e50b7dda7742878580a338bad589f5daeba Mon Sep 17 00:00:00 2001 From: creme Date: Sun, 2 Feb 2020 11:51:51 +0100 Subject: [PATCH] we $name and $email for ban info --- signup/signup-handler.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/signup/signup-handler.php b/signup/signup-handler.php index 119a11a..61993ad 100644 --- a/signup/signup-handler.php +++ b/signup/signup-handler.php @@ -150,9 +150,11 @@ if (isset($_REQUEST["username"]) && isset($_REQUEST["email"])) { . 'see our ssh wiki or ' . 'hop on irc and ask for help'; else { - if (forbidden_sshkey($sshkey)) { - $message .= "
  • your sshkey is banned!
  • \n"; - add_ban_info($name, $email); + if ($name != "" && $email != "") { + if (forbidden_sshkey($sshkey)) { + $message .= "
  • your sshkey is banned!
  • \n"; + add_ban_info($name, $email); + } } }