Login always redirects to lost password
Hi guys
I'm experiencing a problem on my site - when I log in with the correct username and password, I'm always redirected to the send lost password page. The send lost password page works but the login page is not redirecting to the users_profile.php page Here's the authenticate user server behavior code on users_login.php:
<?php
if($_SERVER["REQUEST_METHOD"] == "POST"){
$WA_Auth_Parameter = array(
"connection" => $ucpntx,
"database" => $database_ucpntx,
"tableName" => "users",
"columns" => explode($WA_Auth_Separator,"idusers".$WA_Auth_Separator."userPassword"),
"columnValues" => explode($WA_Auth_Separator,"".((isset($_POST["username"]))?$_POST["username"]:"") ."".$WA_Auth_Separator."".((isset($_POST["userpassword"]))?$_POST["userpassword"]:"") .""),
"columnTypes" => explode($WA_Auth_Separator,"int".$WA_Auth_Separator."text"),
"sessionColumns" => explode($WA_Auth_Separator,"idusers"),
"sessionNames" => explode($WA_Auth_Separator,"idusers"),
"successRedirect" => "users_Profile.php",
"failRedirect" => "users_EmailPW.php",
"gotoPreviousURL" => TRUE,
"keepQueryString" => TRUE
);
WA_AuthenticateUser($WA_Auth_Parameter);
}
?>