adding infra for sys0 presentation in st.gallen

This commit is contained in:
Janis Steiner
2024-11-18 16:01:44 +00:00
parent 84d1a428c7
commit 1ba076a766

View File

@@ -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;