close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

log in user

Thread began 10/31/2018 3:00 pm by Nigel | Last modified 11/01/2018 9:37 pm by Ray Borduin | 51 views | 3 replies |

Nigel

log in user

Hi,

Updated Log in user and url looks like this now:

http://localhost/mysite/admin/login.php?accesscheck=%2Fmysite%2Fadmin%2Fcentral.php

Code generated by DataBridge MySQLi Log In User is as follows:

$Authenticate = new WA_MySQLi_Auth($db);
$Authenticate->Action = "authenticate";
$Authenticate->Trigger = (isset($_POST["Submit"]) || isset($_POST["Submit_x"]));
$Authenticate->Name = "LoggedIn";
$Authenticate->Table = "`access`";
$Authenticate->addFilter("username", "=", "s", "".((isset($_POST["username"]))?$_POST["username"]:"") ."");
$Authenticate->addFilter("pass", "=", "s", "".((isset($_POST["password"]))?$_POST["password"]:"") ."");
$Authenticate->storeResult("id_access", "id_access");
$Authenticate->RememberMe = (false);
$Authenticate->SaveLogin = (false);
$Authenticate->AutoReturn = false;
$SuccessRedirect = "central.php";
$FailedRedirect = "login.php";
if (function_exists("rel2abs")) $SuccessRedirect = $SuccessRedirect?rel2abs($SuccessRedirect,dirname(__FILE__)):"";
if (function_exists("rel2abs")) $FailedRedirect = $FailedRedirect?rel2abs($FailedRedirect,dirname(__FILE__)):"";
$Authenticate->SuccessRedirect = $SuccessRedirect;
$Authenticate->FailRedirect = $FailedRedirect;
$Authenticate->execute();

Any ideas?

Sign in to reply to this post

Ray BorduinWebAssist

What is the error or issue? I'm not sure what I should be looking for.

Sign in to reply to this post

Nigel

It's not taking me to the redirect page after successful login.

With correct login result is:

http://localhost/mysite/admin/login.php?accesscheck=%2Fmysite%2Fadmin%2Fcentral.php

It used to go straight to:

http://localhost/mysite/admin/central.php

Am I missing something?

Sign in to reply to this post

Ray BorduinWebAssist

It may be that the access rule on the admin/central.php page is rejecting the page. It could be an issue on that page and not this one.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...