Hi Jason,
that with login=failed works well, but if the user tries to login angain, the login=failed stays in the URL adress.
How can I make, that it starts always new?
Do I need to delete the $login somewhere?
As you can see I need the redirect only in VT.
<?php
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$WAFV_Redirect = "https://www.ssl-id.de/ichbinmusiker.de/login.php";
$_SESSION['WAVT_login_737_Errors'] = "";
if ($WAFV_Redirect == "") {
$WAFV_Redirect = $_SERVER["PHP_SELF"];
}
$WAFV_Errors = "";
$WAFV_Errors .= WAValidateRX(((isset($_POST["yourName"]))?$_POST["yourName"]:"") . "","/^$/i",false,1);
$WAFV_Errors .= WAValidateRX(((isset($_POST["yourEmail"]))?$_POST["yourEmail"]:"") . "","/^$/i",false,2);
$WAFV_Errors .= WAValidateEM(((isset($_POST["username"]))?$_POST["username"]:"") . "",true,3);
$WAFV_Errors .= WAValidateEL(((isset($_POST["password"]))?$_POST["password"]:"") . "",6,15,true,4);
$WAFV_Errors .= WAValidateAN(((isset($_POST["password"]))?$_POST["password"]:"") . "",true,true,true,false,"!@#$%^*()-_.:,;üäöÜÄÖß",true,5);
$WAFV_Errors .= WAValidateLE((strtolower(isset($_POST["code"])?$_POST["code"]:"")) . "",((isset($_SESSION["captcha_code"]))?strtolower($_SESSION["captcha_code"]):"") . "",true,6);
if ($WAFV_Errors != "") {
PostResult($WAFV_Redirect,$WAFV_Errors,"login_737");
}
}
?>
<?php
if(isset($_POST["buttonLogin"])){
$WA_Auth_Parameter = array(
"connection" => $IchBinMusiker,
"database" => $database_IchBinMusiker,
"tableName" => "member",
"columns" => explode($WA_Auth_Separator,"email".$WA_Auth_Separator."password".$WA_Auth_Separator."confirmed"),
"columnValues" => explode($WA_Auth_Separator,"".((isset($_POST["username"]))?$_POST["username"]:"") ."".$WA_Auth_Separator."".WA_SHA1Encryption(((isset($_POST["password"]))?$_POST["password"]:"")) ."".$WA_Auth_Separator."1"),
"columnTypes" => explode($WA_Auth_Separator,"text".$WA_Auth_Separator."text".$WA_Auth_Separator."int"),
"sessionColumns" => explode($WA_Auth_Separator,"memberid".$WA_Auth_Separator."profileid".$WA_Auth_Separator."access"),
"sessionNames" => explode($WA_Auth_Separator,"memberid".$WA_Auth_Separator."profileid".$WA_Auth_Separator."access"),
"successRedirect" => "Member/index.php",
"failRedirect" => "login.php?login=failed",
"gotoPreviousURL" => FALSE,
"keepQueryString" => FALSE
);
WA_AuthenticateUser($WA_Auth_Parameter);
}
?>