From 1ba076a766440f6287b8fcd9db588714f26a5fbe Mon Sep 17 00:00:00 2001 From: Janis Steiner Date: Mon, 18 Nov 2024 16:01:44 +0000 Subject: [PATCH] adding infra for sys0 presentation in st.gallen --- sys0-code/login/login.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys0-code/login/login.php b/sys0-code/login/login.php index f3c8ec1..e0649c1 100644 --- a/sys0-code/login/login.php +++ b/sys0-code/login/login.php @@ -227,6 +227,7 @@ if($_SERVER["REQUEST_METHOD"] == "POST" and $_GET["action"]=="create_user"){ } } // Validate kantimail + //if(1) //put this to disable ksw only mail if(strpos($_POST["username"],"@kantiwattwil.ch")===false){ $err = "Only members of KSW can access this site. (prename.name@kantiwattwil.ch)."; } @@ -239,6 +240,7 @@ if($_SERVER["REQUEST_METHOD"] == "POST" and $_GET["action"]=="create_user"){ if($stmt = mysqli_prepare($link, $sql)){ // Bind variables to the prepared statement as parameters $banned=1; + //$banned=0; //put this to disable email verification enforcment $banned_reason="Account muss zuerst verifiziert werden (Link in Mail)"; $tel=0; $mail=1;