custom login PHP not processing?

Permalink
I've got some custom PHP on a Singe_page that's connecting to, and validating against a custom database on the same platform. The page can see the table easily enough but when the form on the single page is submitted to validate against the database, the Concrete platform just sends me back to the home index page. What am I doing wrong here???

 
12345j replied on at Permalink Reply
12345j
the logic for when the form submits is located in root/concrete/controllers/login.php- copy that file to root/controllers/login.php there and do your stuff in the do_login function
adrianle replied on at Permalink Reply
Thanks, I'll give that a shot. Can you tell me just exactly what chunk of the code in the do_login function area that I'd replace? I've played with it a bit and the login still just returns me to the home index page. The code below is what works on a "normal" PHP page:

// *** Validate request to login to this site.
if (!isset($_SESSION)) {
  session_start();
}
$loginFormAction = $_SERVER['PHP_SELF'];
if (isset($_GET['accesscheck'])) {
  $_SESSION['PrevUrl'] = $_GET['accesscheck'];
}
if (isset($_POST['username'])) {
  $loginUsername=$_POST['username'];
  $password=$_POST['password'];
  $MM_fldUserAuthorization = "";
  $MM_redirectLoginSuccess = "Secured.php";
  $MM_redirectLoginFailed = "Failed.php";
  $MM_redirecttoReferrer = true;