Jump to content

Capture User Logins


Recommended Posts

Unless there's someone here that's familiar with that thing (which Google doesn't seem to know about) then you'll be pretty much on your own. You'll have to find the place that handles logins and extend it to add to the database when it does so.


Maybe there's some online support you can find?

Link to comment
Share on other sites

Unfortunately, the site was already built on this platform by a previous developer.  I got the deal to make a ton of modifications/improvements.  I have been able to successfully complete about 80% of the requests with limited PHP knowledge.  The site was built using WebAssist but, for my purposes, not worht purchasing the licensing for this.  Simply need to modify code directly.

Link to comment
Share on other sites

Okay, thank you for taking a look at this.  I have tried to attach as a file, but unable to.  So, I have pasted the code directly below.  What my ultimate goal is, to capture and display login report when each user has logged into the system (UserName, UserID, IP Address, Date/Time).  I have the report created from test data already.  Just unable to make the login submit to the new db table.



<?php require_once( 'Connections/DATABASE.php' ); ?>
<?php require_once( "WA_SecurityAssist/Helper_PHP.php" ); ?>
$WA_Auth_Parameter = array(
"connection" => $DATABASE,
"database" => $database,
"tableName" => "users",
"columns" => explode($WA_Auth_Separator,"userName".$WA_Auth_Separator."userPW"),
"columnValues" => explode($WA_Auth_Separator,"".((isset($_POST["username"]))?$_POST["username"]:"")  ."".$WA_Auth_Separator."".((isset($_POST["userpassword"]))?$_POST["userpassword"]:"")  .""),
"columnTypes" => explode($WA_Auth_Separator,"text".$WA_Auth_Separator."text"),
"sessionColumns" => explode($WA_Auth_Separator,"userID".$WA_Auth_Separator."userGroup"),
"sessionNames" => explode($WA_Auth_Separator,"userID".$WA_Auth_Separator."userGroup"),
"successRedirect" => "HomePage.php",
"failRedirect" => "FailedLogin.php",
"gotoPreviousURL" => TRUE,
"keepQueryString" => TRUE

?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Log In</title>
<link href="WA_SecurityAssist/styles/Elemental_Deep Jungle.css" rel="stylesheet" type="text/css" />
<link href="WA_SecurityAssist/styles/Verdana.css" rel="stylesheet" type="text/css" />
<link href="styles.css" rel="stylesheet" type="text/css">

<table width="100%" border="0" cellspacing="0" cellpadding="0">
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <td><div align="center" >
            <table border="0" cellpadding="0" cellspacing="0">
                <td><div align="left"><img src="images/logo.jpg" width="245" height="92" hspace="50" /></div></td>
                <td><img src="images/member.png" width="280" height="38" /></td>
        <td><div align="center" ></div></td>
    <td class="main-content"><div align="center"><br />
      <div id="LogInContainer" class="WAATK">
  <form action="<?php echo ($_SERVER["PHP_SELF"].(isset($_SERVER["QUERY_STRING"])?"?".htmlentities($_SERVER["QUERY_STRING"]):""));?>" method="post" name="WAATKLogInForm" id="WAATKLogInForm">
    <h1 align="center">Log In</h1>
    <div align="center">
      <table class="WAATKDataTable" cellpadding="0" cellspacing="0" border="0">
          <th>User name</th>
            <td><input type="text" class="WAATKTextField" name="username" value="" /></td>
		<input type="password" class="WAATKTextField" name="userpassword" value="" />			
    <div class="WAATKButtonRow">
      <div align="center">
        <input type="image" hspace="0" vspace="0" border="0" name="Log In" id="Log In" value="Log In" alt="Log In" src="WA_SecurityAssist/images/Deep Jungle/Ultramodern_login.gif"  />


Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.