close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Forgot password link not working

Thread began 7/27/2016 1:05 pm by gail.bergan407744 | Last modified 8/04/2016 2:23 pm by Ray Borduin | 116 views | 12 replies |

gail.bergan407744

Forgot password link not working

Hi,

Earlier this year Ray B. helped me configure a "Forgot Password?" link for my login page. This link redirected to a ForgotPassword.php page, which automatically retrieved the member's password from our database and sent it to them in an email. Now we've moved our site to a different server and for some reason the link is not redirecting, so people are not getting their passwords. I'm attaching the two relevant files and hopefully you guys can spot what is wrong, or let me know if you need other information. Thank you,

Gail

Attached Files
forgotpassword.php
login.php
Sign in to reply to this post

Ray BorduinWebAssist

It looks like it would work. What exactly happens? Are you sure you uploaded all of the required include files?

Do you get a success or failure message after submitting your email from the forgot password page?

Sign in to reply to this post

gail.bergan407744

Hi Ray,

I sent this response last Friday via email - maybe you didn't receive it?
-------
I just uploaded the entire webassist folder and forgotpassword.php again, to make sure. When I click on forgot password? link, the browser page spins for a long time (Connecting...) and then the page says "The page isn't redirecting properly, Firefox has detected that the server is redirecting the request for this address in a way that will never complete. This problem can sometimes be caused by disabling or refusing to accept cookies."

In MS Edge it says "Hmm, we can't reach this page. Try this: Make sure you’ve got the right web address: http://www.gcssepm.org"

I'm getting a lot of manual requests for password again because this link has decided not to work.

Gail

Sign in to reply to this post

Ray BorduinWebAssist

Try changing the value for the trigger on line 12 from:
if ($Recordset1->getColumnVal("password")) {

to:
if (isset($_POST['email'])) {

Sign in to reply to this post

gail.bergan407744

Well, the forgotpassword.php form finally passed through, but it didn't capture my email address from the database and send it to me. That's the purpose of the script. What we overwrote: getColumnVal (password) - wasn't that the capture command?

Sign in to reply to this post

Ray BorduinWebAssist

That was the trigger that we overwrote. The issue was that we were sending the email any time a result was returned from the database that was filtered from the submitted form.

It appears you must have a field in your database with a blank email address. That was causing the recordset to have a result even before the form was submitted. I had you change the trigger to respond to the form submit directly to prevent it from thinking it should send to the blank email field.

Sign in to reply to this post

gail.bergan407744

I'm sorry, I don't understand one word of what you just wrote. The script still isn't working, and it was working before. Yes, we have a few members that don't have email addresses, but obviously, they aren't the people asking for their password.

Sign in to reply to this post

Ray BorduinWebAssist

I'd need FTP access to debug any further. I can't imagine why it would stop working when it worked before other than the redirect loop that was caused by blank email address fields being added.

If you give me ftp access and an email address to test with I can debug it further.

Sign in to reply to this post

gail.bergan407744

see PM area

Sign in to reply to this post

Ray BorduinWebAssist

It appears to be working. Please let me know if you get the email.

Sign in to reply to this post
loading

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