close ad
Help us test the new Databridge BETA with MySQLi support
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Redirect on Pass or Fail not working

Thread began 1/24/2013 9:57 am by georgina_barrett_187762 | Last modified 1/28/2013 11:48 am by Jason Byrnes | 738 views | 5 replies |

georgina_barrett_187762

Redirect on Pass or Fail not working

I set up a forgotten password page using the wizard. The email gets sent ok if it matches the email in the database however it doesn't redirect to the login success page. It also doesn't redirect to the login fail page if the email doesn't match.

This is my code

<?php
@session_start();
?>
<?php require_once('Connections/extratime.php'); ?>
<?php require_once( "webassist/security_assist/helper_php.php" ); ?>
<?php require_once( "webassist/security_assist/helper_php.php" );
function WA_SecurityAssist_Email_1_SendMail($WA_Auth_Parameter){
$WA_MailObject = WA_SecurityAssist_Definition("mail.extratimeonline.co.uk","26","Extra Time Online","","","");
$WA_MailObject = WA_SecurityAssist_SendMail($WA_MailObject,"","","",$WA_Auth_Parameter["toAddress"],"",$WA_Auth_Parameter["fromAddress"],$WA_Auth_Parameter["subject"],$WA_Auth_Parameter["mailBody"]);
$WA_MailObject = null;
}// WA_SecurityAssist_Email_1_SendMail

if($_SERVER["REQUEST_METHOD"] == "POST"){
//WA SecurityAssist Email object="mail"
$WA_Auth_Parameter = array(
"connection" => $extratime,
"database" => $database_extratime,
"tableName" => "customercontacts",
"filterColumn" => "Email",
"filterEncryption" => "",
"columnValue" => "".((isset($_POST["email"]))?$_POST["email"]:"") ."",
"columnType" => "text",
"usernameColumn" => "username",
"usernameEncryption" => "",
"passwordColumn" => "password",
"passwordEncryption" => "",
"selectColumns" => array("username","password","Email"),
"sessionVariables" => array(""),
"successRedirect" => "login.php",
"failRedirect" => "noemail.php",
"keepQueryString" => FALSE,
"toAddressColumn" => "Email",
"toAddressEncryption" => "",
"fromAddress" => "info@extratimeonline.co.uk",
"fromAddressDisplay" => "Extra Time Online",
"subject" => "Forgotten Password",
"mailBody" => "User name: [username]
Password: [password]",
"emailFunction" => "WA_SecurityAssist_Email_1_SendMail"
);

WA_Auth_ForgotPassword($WA_Auth_Parameter);
}
?>

Sign in to reply to this post

Jason ByrnesWebAssist

could be a php error occurring that is preventing the redirect.

to turn error reporting on, add the following code at line 1:

php:
<?php

error_reporting
(E_ALL);
ini_set('display_errors','on');
?>
Sign in to reply to this post

georgina_barrett_187762

I have added that but there are no errors. This is a link to the page

http://www.extratimeonline.co.uk/new/forgotpassword.php

You can see the redirect on fail doesn't work by making up an email address.

Sign in to reply to this post

Jason ByrnesWebAssist

What version of data Bridge do you have?

I think this is an issue that was fixed in version 1.1.3.

If you have a previous version installed, make sure to uninstall it from the extension manager before installing the newer one.

after installing the newer version, make sure to delete the webassist/security_assist/helper_php.php file from your site, then edit the Email password behavior and click OK to have it regenerated. make sure to upload the new webassist/security_assist/helper_php.php file to the server

Sign in to reply to this post

georgina_barrett_187762

Yes, that fixed it thanks.

Sign in to reply to this post

Jason ByrnesWebAssist

glad to hear it is working.

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...